]> source.dussan.org Git - tigervnc.git/log
tigervnc.git
6 years agoProperly sync LED state on connect
Pierre Ossman [Thu, 7 Jun 2018 07:16:02 +0000 (09:16 +0200)]
Properly sync LED state on connect

We should start by getting the remote end in sync with the actual
keyboard state. This would work randomly before depending on if we
got the first LED state message before or after we got focus.

6 years agoMerge branch 'unix' of https://github.com/CendioOssman/tigervnc
Pierre Ossman [Tue, 29 May 2018 14:46:19 +0000 (16:46 +0200)]
Merge branch 'unix' of https://github.com/CendioOssman/tigervnc

6 years agoUnix socket support in x0vncserver 639/head
Pierre Ossman [Fri, 4 May 2018 13:40:22 +0000 (15:40 +0200)]
Unix socket support in x0vncserver

6 years agoProper cleanup on termination of Xvnc/libvnc.so
Pierre Ossman [Fri, 4 May 2018 12:58:01 +0000 (14:58 +0200)]
Proper cleanup on termination of Xvnc/libvnc.so

6 years agoMerge common socket code
Pierre Ossman [Fri, 4 May 2018 10:44:31 +0000 (12:44 +0200)]
Merge common socket code

6 years agoDon't require server name in config file
Pierre Ossman [Tue, 29 May 2018 14:37:54 +0000 (16:37 +0200)]
Don't require server name in config file

The user might just want to load a bunch of settings and not
initiate a connection.

6 years agoMerge branch 'config_as_an_argument' of https://github.com/Kypert/tigervnc
Pierre Ossman [Tue, 29 May 2018 14:07:07 +0000 (16:07 +0200)]
Merge branch 'config_as_an_argument' of https://github.com/Kypert/tigervnc

6 years agoStop treating "\\\\" as a special case
Pierre Ossman [Tue, 29 May 2018 13:51:42 +0000 (15:51 +0200)]
Stop treating "\\\\" as a special case

Make the code simpler by handling it just like any escaped character.

6 years agoFix parameter escape sequence parsing
Pierre Ossman [Tue, 29 May 2018 13:51:03 +0000 (15:51 +0200)]
Fix parameter escape sequence parsing

We decoded "\\n" as "n" rather than "\n".

6 years agoCatch exceptions by reference
Pierre Ossman [Tue, 29 May 2018 13:50:08 +0000 (15:50 +0200)]
Catch exceptions by reference

We use polymorphic exception objects, so catching by value invokes
the copy constructor and stuff that we don't really want.

6 years agoFix bad reference in TLSException initialiser
Pierre Ossman [Tue, 29 May 2018 13:49:26 +0000 (15:49 +0200)]
Fix bad reference in TLSException initialiser

6 years agoRemove unused code from socket classes
Pierre Ossman [Mon, 21 May 2018 10:06:47 +0000 (12:06 +0200)]
Remove unused code from socket classes

6 years agoAdd support for Unix sockets
Pierre Ossman [Thu, 3 May 2018 12:04:38 +0000 (14:04 +0200)]
Add support for Unix sockets

Patch originally by Dag-Erling Smørgrav for University of Oslo.

6 years agoAvoid assert crash after bytestream position wrap around
Peter Åstrand (astrand) [Tue, 29 May 2018 08:04:53 +0000 (10:04 +0200)]
Avoid assert crash after bytestream position wrap around

Fixes #652.

6 years agoAccept a cfg as an argument as an alt way to start the viewer 632/head
Mathias Jonsson [Sun, 22 Apr 2018 17:10:30 +0000 (19:10 +0200)]
Accept a cfg as an argument as an alt way to start the viewer

The user can specify a tigervnc configuration file as an argument to the
viewer. Previously the viewer assumed this to be a server, but now we
will first check if there is any file matching the given argument. If
so, try to load the content of that file, like we normally do.

Fixes issue #38.

6 years agoUpdate Esperanto translation
Felipe Castro [Tue, 15 May 2018 00:23:00 +0000 (21:23 -0300)]
Update Esperanto translation

6 years agox0vncserver: Make sure rotation for new outputs is set to RR_Rotate_0
Peter Åstrand (astrand) [Tue, 8 May 2018 11:54:22 +0000 (13:54 +0200)]
x0vncserver: Make sure rotation for new outputs is set to RR_Rotate_0

The Xserver (at least Xorg 1.19) rejects RRSetCrtcConfig requests if
rotation is zero.

6 years agoHandle view only password in vncpasswd filter mode
Pierre Ossman [Mon, 7 May 2018 14:03:45 +0000 (16:03 +0200)]
Handle view only password in vncpasswd filter mode

6 years agoAvoid creating unused thread on single CPU machines
Peter Åstrand (astrand) [Mon, 7 May 2018 12:59:57 +0000 (14:59 +0200)]
Avoid creating unused thread on single CPU machines

6 years agoFlush pending changes when desktop starts
Pierre Ossman [Mon, 7 May 2018 12:24:56 +0000 (14:24 +0200)]
Flush pending changes when desktop starts

The system to avoid processing changes for a stopped desktop was a
bit overly aggressive and resulted in those changes getting stuck even
when the desktop started again (yet another change was needed to get
things rolling again).

Make sure we flush out anything pending once the desktop is back up and
running. We don't use the frame timer here as we no longer know how
old these changes are, so we're not really rate limiting any application.

6 years agoComparing ScreenSet:s should be done without considering order
Peter Åstrand (astrand) [Mon, 7 May 2018 07:58:59 +0000 (09:58 +0200)]
Comparing ScreenSet:s should be done without considering order

Avoids that a viewer connected to Xvnc sometimes disconnects with
"Desktop configured a different screen layout than requested" when
screens are changing.

6 years agoUse abstract SocketListener class
Pierre Ossman [Thu, 3 May 2018 12:03:55 +0000 (14:03 +0200)]
Use abstract SocketListener class

Makes the code more general and not directly tied to specifically
TCP sockets.

6 years agoHandle hexadecimal and octal parameters
Pierre Ossman [Thu, 3 May 2018 12:00:31 +0000 (14:00 +0200)]
Handle hexadecimal and octal parameters

6 years agoMerge pull request #638 from x11clone/fullscreen-multimon-toggle
astrand [Wed, 2 May 2018 14:00:00 +0000 (16:00 +0200)]
Merge pull request #638 from x11clone/fullscreen-multimon-toggle

Update fullscreen window if changing fullScreenAllMonitors option

6 years agoFix windows build with -DCMAKE_BUILD_TYPE=Debug on machines with IActiveDesktop 638/head
Peter Åstrand (astrand) [Mon, 23 Apr 2018 08:30:30 +0000 (10:30 +0200)]
Fix windows build with -DCMAKE_BUILD_TYPE=Debug on machines with IActiveDesktop

Avoid that the check_c_source_compiles tests fails due to unused
variables, since Debug adds -Werror.

6 years agoFix another compile error on Windows when not building with GnuTLS
Peter Åstrand (astrand) [Mon, 23 Apr 2018 08:00:35 +0000 (10:00 +0200)]
Fix another compile error on Windows when not building with GnuTLS

6 years agoUpdate fullscreen window if changing fullScreenAllMonitors option
Peter Åstrand (astrand) [Wed, 18 Apr 2018 19:49:41 +0000 (21:49 +0200)]
Update fullscreen window if changing fullScreenAllMonitors option

6 years agoMerge branch 'alr' of https://github.com/CendioOssman/tigervnc
Pierre Ossman [Fri, 20 Apr 2018 11:57:41 +0000 (13:57 +0200)]
Merge branch 'alr' of https://github.com/CendioOssman/tigervnc

6 years agoMerge branch 'clipfocus' of https://github.com/CendioOssman/tigervnc
Pierre Ossman [Fri, 20 Apr 2018 11:45:07 +0000 (13:45 +0200)]
Merge branch 'clipfocus' of https://github.com/CendioOssman/tigervnc

6 years agoMake sure we get C99
Pierre Ossman [Fri, 13 Apr 2018 11:49:43 +0000 (13:49 +0200)]
Make sure we get C99

The compiler might default to something older, so make sure we get
the features we need.

6 years agoImprove out-of-tree build of Xvnc/libvnc.so
Pierre Ossman [Fri, 13 Apr 2018 11:39:16 +0000 (13:39 +0200)]
Improve out-of-tree build of Xvnc/libvnc.so

With the new unixcommon library we have things outside of common/,
so make the handling of out-of-tree builds more general.

6 years agoMerge branch 'x0vncserver-randr' of https://github.com/x11clone/x11clone
Pierre Ossman [Tue, 10 Apr 2018 06:11:46 +0000 (08:11 +0200)]
Merge branch 'x0vncserver-randr' of https://github.com/x11clone/x11clone

6 years agoAdd RandR support for x0vncserver 621/head
Peter Åstrand (astrand) [Wed, 7 Mar 2018 12:00:47 +0000 (13:00 +0100)]
Add RandR support for x0vncserver

Change Xserver screen through libXrandr. For complex configurations,
all outputs must have corresponding size modes. As a special case, if
the client requests a single screen with an odd size (for example when
adjusting the size of a non-fullscreen vncviewer), find a smaller
suitable mode, and reduce the framebuffer size as well.

6 years agoAdd a tryScreenLayout function
Peter Åstrand (astrand) [Tue, 27 Mar 2018 07:14:38 +0000 (09:14 +0200)]
Add a tryScreenLayout function

This can be used to test if a layout if possible.

6 years agoAdd debug log messages
Peter Åstrand (astrand) [Mon, 19 Mar 2018 10:07:32 +0000 (11:07 +0100)]
Add debug log messages

6 years agoAvoid disabling outputs which are already disabled
Peter Åstrand (astrand) [Tue, 20 Mar 2018 09:26:40 +0000 (10:26 +0100)]
Avoid disabling outputs which are already disabled

Better to avoid making unnecessary calls, but mainly we want to avoid
logging false errors.

6 years agoSelect the correct output for new screens
Peter Åstrand (astrand) [Tue, 20 Mar 2018 07:15:41 +0000 (08:15 +0100)]
Select the correct output for new screens

For example, if we have earlier disabled an output because it was too
large for the framebuffer, we should prefer this output when
allocating new outputs.

Move the code that turn off unused outputs to the end.

Also, add support for checking the output connection state.

6 years agoDisable outputs which are larger than the target framebuffer size
Peter Åstrand (astrand) [Tue, 20 Mar 2018 07:10:12 +0000 (08:10 +0100)]
Disable outputs which are larger than the target framebuffer size

Apparently this is not necessary when using the internal API, but a
must with libXrandr.

6 years agovncRandRDisableOutput: Disable only the requested output
Peter Åstrand (astrand) [Tue, 27 Mar 2018 07:25:02 +0000 (09:25 +0200)]
vncRandRDisableOutput: Disable only the requested output

This only matters when using clones, which we do not accept yet. This
patch is for completeness and to avoid future surprises.

6 years agoMake vncRandRGetOutputDimensions tolerant for disabled outputs
Peter Åstrand (astrand) [Mon, 19 Mar 2018 09:47:40 +0000 (10:47 +0100)]
Make vncRandRGetOutputDimensions tolerant for disabled outputs

Return error if no CRTC.

6 years agoRemove "screen" argument from Randr glue functions
Peter Åstrand (astrand) [Mon, 2 Apr 2018 20:15:47 +0000 (22:15 +0200)]
Remove "screen" argument from Randr glue functions

Screen is a Xvnc thing and not relevant for x0vncserver etc.

6 years agoRemoved support for building without RANDR define
Peter Åstrand (astrand) [Wed, 7 Mar 2018 11:54:44 +0000 (12:54 +0100)]
Removed support for building without RANDR define

RANDR is mandatory since Xorg 1.7, which is the oldest version we
support.

6 years agoCorrected RandR wrapper return codes
Peter Åstrand (astrand) [Wed, 7 Mar 2018 11:32:30 +0000 (12:32 +0100)]
Corrected RandR wrapper return codes

In RandR land, there's a lot of return code confusion. Our wrappers
are using the same return codes as RRCrtcSet, RRScreenSizeSet: 1/TRUE
for success. Fixes:

* vncRandRCreateOutputs did not follow this convention

* A lot of code returned -1 upon failure

* vncRandRDisableOutput returned 0 for already disabled outputs

6 years agoMove computeScreenLayout/setScreenLayout to unixcommon lib
Peter Åstrand (astrand) [Wed, 7 Mar 2018 08:29:00 +0000 (09:29 +0100)]
Move computeScreenLayout/setScreenLayout to unixcommon lib

These two code blocks are not specific to Xvnc/vnc.so, but useful for
x0vncserver as well. RandrGlue.h defines the interface on which
unixcommon depends on.

6 years agovncRandRGetOutputName: return a copy of the string
Peter Åstrand (astrand) [Wed, 7 Mar 2018 07:35:03 +0000 (08:35 +0100)]
vncRandRGetOutputName: return a copy of the string

Compatibility with libXrandr, where the name is in dynamically
allocated XRROutputInfo.

6 years agoMake vncRandRGetOutputId return the actual id; not a pointer
Peter Åstrand (astrand) [Wed, 7 Mar 2018 07:21:42 +0000 (08:21 +0100)]
Make vncRandRGetOutputId return the actual id; not a pointer

Less confusing, and compatible with libXrandr.

6 years agoIndented computeScreenLayout and setScreenLayout
Peter Åstrand (astrand) [Wed, 7 Mar 2018 07:10:21 +0000 (08:10 +0100)]
Indented computeScreenLayout and setScreenLayout

Should use 2 spaces like the rest of the project.

6 years agoSend lossless refresh even with pending updates 622/head
Pierre Ossman [Fri, 23 Mar 2018 10:45:51 +0000 (11:45 +0100)]
Send lossless refresh even with pending updates

There might be parts of the screen that haven't changed and can
therefore be refreshed. Figure which parts these are and send just
those.

6 years agoLimit lossless refresh update to safe size
Pierre Ossman [Fri, 23 Mar 2018 08:30:09 +0000 (09:30 +0100)]
Limit lossless refresh update to safe size

We don't want to waste bandwidth on the lossless refresh if we might
need that bandwidth for a normal update. Try to estimate how much
data we can safely send without interfering.

6 years agoAutomatic lossless refresh
Pierre Ossman [Wed, 30 Nov 2016 07:03:35 +0000 (08:03 +0100)]
Automatic lossless refresh

Resend pixel perfect copies of areas that were previously sent
using a lossy encoder. This is done when there is no normal update
to send, and no congestion.

6 years agoAvoid checking updates when desktop is stopped
Pierre Ossman [Thu, 22 Mar 2018 15:01:44 +0000 (16:01 +0100)]
Avoid checking updates when desktop is stopped

No need to run all the update machinery when there is no client
connected.

This commit also cleans up the stop handling a bit by moving it to
its own method.

6 years agoRemove redundant Region::copyFrom()
Pierre Ossman [Thu, 22 Mar 2018 15:00:18 +0000 (16:00 +0100)]
Remove redundant Region::copyFrom()

We already have an assignment operator, so no need for this method.

6 years agoRespect request area for cursor rendering
Pierre Ossman [Thu, 22 Mar 2018 14:58:54 +0000 (15:58 +0100)]
Respect request area for cursor rendering

We cannot send updates for a cursor that is outside the requested
region, so make sure we track things properly. This also has the nice
side effect of just re-sending the bits needed when the cursor overlaps
a changed part of the framebuffer.

6 years agoRemove no longer relevant license comment
Pierre Ossman [Fri, 5 Feb 2016 09:28:49 +0000 (10:28 +0100)]
Remove no longer relevant license comment

6 years agoStop abusing InputHandler class for write class
Pierre Ossman [Fri, 5 Feb 2016 09:43:12 +0000 (10:43 +0100)]
Stop abusing InputHandler class for write class

The handler is for incoming data and we should not be abusing that
class for the writer class. Do proper write prototypes for the
relevant functions.

6 years agoAdd missing break for LED state check
Pierre Ossman [Wed, 28 Mar 2018 10:33:22 +0000 (12:33 +0200)]
Add missing break for LED state check

The previous code would incorrectly also add support for QEMU
key events if LED state was supported.

6 years agoAvoid clipboard updates when not focused 620/head
Pierre Ossman [Mon, 26 Mar 2018 12:17:04 +0000 (14:17 +0200)]
Avoid clipboard updates when not focused

We don't want to surprise the user with unexpected clipboard changes
when vncviewer is in the background, and it is both wasteful and
possibly insecure to inform the server of every clipboard update
when the user isn't interacting with it.

6 years agoAdd focus test helper for Viewport
Pierre Ossman [Mon, 26 Mar 2018 12:16:43 +0000 (14:16 +0200)]
Add focus test helper for Viewport

6 years agoHandle LED state sync entirely in Viewport
Pierre Ossman [Mon, 26 Mar 2018 12:15:40 +0000 (14:15 +0200)]
Handle LED state sync entirely in Viewport

Apply workaround for FLTK's bad focus handling so that we can let
Viewport handle LED synchronisation without help from DesktopWindow.

6 years agoMove server cut text handler to Viewport
Pierre Ossman [Mon, 26 Mar 2018 11:32:49 +0000 (13:32 +0200)]
Move server cut text handler to Viewport

That way both incoming and outgoing clipboard are both in the same
place, making things clearer.

6 years agoReplace "frames" with "updates" in stats
Pierre Ossman [Mon, 26 Mar 2018 10:22:47 +0000 (12:22 +0200)]
Replace "frames" with "updates" in stats

The VNC servers aren't great at getting full frames with each update,
so avoid calling it "frames per second" in the statistics as that
can be misleading.

6 years agoSet focus to password field in UserDialog
Brian P. Hinz [Wed, 21 Mar 2018 15:17:09 +0000 (11:17 -0400)]
Set focus to password field in UserDialog

Fixes issue #616

6 years agoMerge branch 'altgraph' of https://github.com/CendioOssman/tigervnc
Pierre Ossman [Thu, 8 Mar 2018 16:30:54 +0000 (17:30 +0100)]
Merge branch 'altgraph' of https://github.com/CendioOssman/tigervnc

6 years agoUpdate keyboard test doc for shift on Windows 608/head
Pierre Ossman [Thu, 8 Mar 2018 16:16:14 +0000 (17:16 +0100)]
Update keyboard test doc for shift on Windows

Shift key handling was improved in 30b3f92, but the test documentation
wasn't updated.

6 years agoHandle Ctrl+AltGr on Windows
Pierre Ossman [Thu, 8 Mar 2018 16:24:54 +0000 (17:24 +0100)]
Handle Ctrl+AltGr on Windows

Improve AltGr detection even further on Windows so we can detect the
case when Ctrl and AltGr are pressed together.

6 years agoBetter detection of AltGr on Windows
Pierre Ossman [Thu, 8 Mar 2018 13:05:39 +0000 (14:05 +0100)]
Better detection of AltGr on Windows

Try to properly detect the fake CtrlL+AltR sequence Windows sends
when pressing AltGr. This allows us to send more accurate key
events over to the server.

6 years agoAdd Indonesian translation
Andika Triwidada [Wed, 7 Mar 2018 17:54:00 +0000 (00:54 +0700)]
Add Indonesian translation

6 years agoFix indentation in XDesktop.cxx
Pierre Ossman [Wed, 7 Mar 2018 14:33:42 +0000 (15:33 +0100)]
Fix indentation in XDesktop.cxx

It wasn't properly updated in 3112f50 when it was split off from
x0vncserver.cxx.

6 years agoUnset pixel buffer when x0vncserver client disconnects.
Michal Srb [Fri, 29 Sep 2017 12:47:56 +0000 (14:47 +0200)]
Unset pixel buffer when x0vncserver client disconnects.

In XDesktop::start() we allocate pixel buffer and set it as the backend to the given VNCServer.
In XDesktop::stop() we deallocate the buffer, so we must unset it from the VNCServer as well.
Otherwise the VNCServer could try to access it and crash, for example in deferred update.

6 years agoVNCServerST: Allow unsetting pixel buffer.
Michal Srb [Fri, 29 Sep 2017 12:45:33 +0000 (14:45 +0200)]
VNCServerST: Allow unsetting pixel buffer.

Originally calling VNCServertST::setPixelBuffer(PixelBuffer* pb_) with pb_=0 would do nothing.
With this change pb will be set to 0 and deferred update timer will be stopped.

6 years agoFix rounding error in pixel down conversion
Pierre Ossman [Thu, 1 Mar 2018 13:11:39 +0000 (14:11 +0100)]
Fix rounding error in pixel down conversion

Simple shifting can give noticable rounding errors if there is a large
difference in the number of bits between the formats. Do the proper
thing via a lookup table, the same way things are done for up conversion.

6 years agoFix calculation of conversion test target values
Pierre Ossman [Thu, 1 Mar 2018 13:00:06 +0000 (14:00 +0100)]
Fix calculation of conversion test target values

Bit shifting gives an approximate, but not properly accurate value
when upconverting. Do a proper calculation.

6 years agoCheck for TrueColor support in x0vncserver
Pierre Ossman [Tue, 27 Feb 2018 14:55:44 +0000 (15:55 +0100)]
Check for TrueColor support in x0vncserver

Colour map support was removed in b6b4dc6, but x0vncserver didn't
properly check if the X server required it.

6 years agoMerge branch 'escape-opts' of https://github.com/olivergondza/tigervnc
Pierre Ossman [Tue, 27 Feb 2018 14:31:20 +0000 (15:31 +0100)]
Merge branch 'escape-opts' of https://github.com/olivergondza/tigervnc

6 years agoMerge branch 'congestion' of https://github.com/CendioOssman/tigervnc
Pierre Ossman [Mon, 26 Feb 2018 16:08:34 +0000 (17:08 +0100)]
Merge branch 'congestion' of https://github.com/CendioOssman/tigervnc

6 years agoFix incorrect numbers in performance debug graph
Pierre Ossman [Mon, 26 Feb 2018 16:00:28 +0000 (17:00 +0100)]
Fix incorrect numbers in performance debug graph

Copy paste errors/brain fart:

 - Pixels do not need a factor 8 for any conversion

 - Multiplying bytes by 8 gives bits, so lower case 'b', and bits
   use SI prefixes, not IEC

6 years agoMake sure auth argument is escaped 597/head
Oliver Gondža [Thu, 8 Feb 2018 16:12:11 +0000 (17:12 +0100)]
Make sure auth argument is escaped

6 years agoUpdate visible copyright year to 2018 596/head
Samuel Mannehed [Thu, 8 Feb 2018 15:55:23 +0000 (16:55 +0100)]
Update visible copyright year to 2018

6 years agoFix for RENDER hooks on Xorg < 1.12
Pierre Ossman [Mon, 5 Feb 2018 12:04:07 +0000 (13:04 +0100)]
Fix for RENDER hooks on Xorg < 1.12

TriFan and TriStrip were added in 1.12, so we need to have that code
conditional to support older versions of Xorg.

6 years agoAdd overlooked parameters to Xvnc and x0vncserver man pages 594/head
Pierre Ossman [Mon, 5 Feb 2018 10:01:22 +0000 (11:01 +0100)]
Add overlooked parameters to Xvnc and x0vncserver man pages

There were a bunch of parameters that weren't properly added to the
man pages when the features were added. Make sure everything is
properly in sync.

6 years agoSync x0vncserver and Xvnc man pages
Pierre Ossman [Mon, 5 Feb 2018 09:47:27 +0000 (10:47 +0100)]
Sync x0vncserver and Xvnc man pages

They share a lot of settings, so make sure the documentation is
identical in those cases.

6 years agoRemove DeferUpdate from man pages
Pierre Ossman [Mon, 5 Feb 2018 09:46:18 +0000 (10:46 +0100)]
Remove DeferUpdate from man pages

The funcationality was removed in 6e49e95, so let's also clean up
the documentation referring to it.

6 years agoMerge branch 'readme-rst' of https://github.com/x11clone/x11clone
Pierre Ossman [Wed, 31 Jan 2018 14:25:57 +0000 (15:25 +0100)]
Merge branch 'readme-rst' of https://github.com/x11clone/x11clone

6 years agoRename README.txt to README.rst and convert to reStructuredText 588/head
Peter Åstrand (astrand) [Wed, 29 Nov 2017 08:11:29 +0000 (09:11 +0100)]
Rename README.txt to README.rst and convert to reStructuredText

6 years agoUpdate Spanish translation
Francisco Javier Serrador [Sat, 27 Jan 2018 00:38:00 +0000 (01:38 +0100)]
Update Spanish translation

6 years agoDon't parse FLTK arguments using Fl::arg; handle -display as other options
Peter Åstrand (astrand) [Mon, 29 Jan 2018 09:42:44 +0000 (10:42 +0100)]
Don't parse FLTK arguments using Fl::arg; handle -display as other options

Fl::arg accepts several arguments which we are not documenting. Also,
it accepts a -geometry argument, which clashes with our own -geometry
option.

6 years agoHook remaining XRender operations
Pierre Ossman [Tue, 23 Jan 2018 10:55:18 +0000 (11:55 +0100)]
Hook remaining XRender operations

We had overlooked a few so we didn't track all screen changes properly.

6 years agoUpdate UI look on macOS
Pierre Ossman [Mon, 22 Jan 2018 14:12:41 +0000 (15:12 +0100)]
Update UI look on macOS

macOS no longer uses the old Aqua look, so tweak our things to fit
in better with the current state of things.

6 years agoRestore menukey function to java viewer
Brian P. Hinz [Wed, 17 Jan 2018 04:35:25 +0000 (23:35 -0500)]
Restore menukey function to java viewer

Menukey was broken by recent refactoring of OptionsDialog

6 years agoFixes for erros in java hextile/zrle decoders
Brian P. Hinz [Mon, 1 Jan 2018 22:24:20 +0000 (17:24 -0500)]
Fixes for erros in java hextile/zrle decoders

Various errors exposed when connecting to RealVNC servers
on alternative platforms (ARM, SPARC).  SSLEngineManager
was also cleaned up but most of the changes are cosmetic.

6 years agoUse XShmGetImage for large reads
Peter Åstrand (astrand) [Mon, 15 Jan 2018 14:17:39 +0000 (15:17 +0100)]
Use XShmGetImage for large reads

XShmGetImage is much faster. On my machine, this reduces the CPU usage
of a fullscreen Youtube video playback from 40% to 25%.

6 years agoUse current server time for XUngrabPointer
Peter Åstrand (astrand) [Mon, 15 Jan 2018 07:27:19 +0000 (08:27 +0100)]
Use current server time for XUngrabPointer

Similar to 841e9f32d5952d6f16f67294c2da8bf395066a9b but for the
pointer. Fixes a problem where the desktop environment is unresponsive
(to the mouse) after fullscreen exit; Fixes #579.

6 years agoMy copyright was listed twice, fixed
Peter Åstrand (astrand) [Tue, 9 Jan 2018 08:34:58 +0000 (09:34 +0100)]
My copyright was listed twice, fixed

6 years agoMerge branch 'fatal' of https://github.com/CendioOssman/tigervnc
Pierre Ossman [Thu, 7 Dec 2017 14:21:45 +0000 (15:21 +0100)]
Merge branch 'fatal' of https://github.com/CendioOssman/tigervnc

6 years agoAdjust dimensions for rotated monitors 553/head
Pierre Ossman [Thu, 7 Dec 2017 14:17:58 +0000 (15:17 +0100)]
Adjust dimensions for rotated monitors

We need to flip the dimensions in the case the monitor is rotated
90° or they won't map correctly to the framebuffer.

6 years agoMake VNC extension startup mandatory
Pierre Ossman [Thu, 7 Dec 2017 14:16:54 +0000 (15:16 +0100)]
Make VNC extension startup mandatory

No longer tolerate loading the VNC extension but not being able to
initialize it. This avoids a lot of error prone checking to see
if the extension has started fully or not.

6 years agoCall FatalError on fatal exceptions
Pierre Ossman [Thu, 7 Dec 2017 13:55:54 +0000 (14:55 +0100)]
Call FatalError on fatal exceptions

6 years agoDisplay security state when asking for password (java)
Brian P. Hinz [Fri, 1 Dec 2017 02:23:46 +0000 (21:23 -0500)]
Display security state when asking for password (java)

6 years agoMove UserPasswordGetter out of CConn
Brian P. Hinz [Fri, 1 Dec 2017 02:14:25 +0000 (21:14 -0500)]
Move UserPasswordGetter out of CConn

6 years agoFix secure/insecure images
Pierre Ossman [Mon, 27 Nov 2017 09:17:40 +0000 (10:17 +0100)]
Fix secure/insecure images

They were converted at the wrong resolution, and FLTK chokes on color
names so make sure all colors are specified in hex.