aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'connparams' of https://github.com/CendioOssman/tigervncPierre Ossman2018-12-104-251/+75
|\
| * Move client attributes out of ServerParamsPierre Ossman2018-11-011-12/+10
| | | | | | | | | | | | ServerParams should contain the server state and not information about client settings or capabilities. Move those things up a level to the CConnection object.
| * Merge client resize capabilitiesPierre Ossman2018-11-011-1/+0
| | | | | | | | | | | | No need to have one setting for each extension. All the client code needs to indicate is if it supports resize. The common code can then map this to relevant extensions.
| * Remove unused flags from ServerParamsPierre Ossman2018-11-011-1/+0
| | | | | | | | These were either completely unused, or always true.
| * Move update request handling in to CConnectionPierre Ossman2018-11-012-199/+36
| | | | | | | | | | It's a generic client thing, so abstract it in to the common library. Makes it easier to integrate with other common code.
| * Let CMsgHandler::serverInit() handle initial set upPierre Ossman2018-11-011-5/+1
| | | | | | | | | | | | | | Avoid using the callbacks used for runtime changes for the initial setup. They weren't really useful anyway as you could not allocate a framebuffer without also knowing the pixel format. So make things more clear by letting serverInit() get the initial settings.
| * Stop requiring CConnection::serverInit() to be overriddenPierre Ossman2018-11-012-5/+3
| | | | | | | | | | Add an explicit callback for subclasses to do their startup in. This makes it easier to do proper ordering, and avoids mistakes.
| * Stop using fences for pixel format switchPierre Ossman2018-11-012-56/+46
| | | | | | | | | | This method was only really useful when continuous updates was active, so let's rely on a single extension rather than two.
| * Split out ServerParams from ConnParamsPierre Ossman2018-11-013-52/+56
| | | | | | | | | | | | We need to track different things in the server and client, so separate things to two independent structures to keep things more clear.
| * Encapsulate screen layout storage in ConnParamsPierre Ossman2018-11-012-18/+21
| | | | | | | | | | | | | | Avoid direct access to the screen dimensions and layout so that we can make sure it stays sane. This also makes sure the layout is properly updated when we only get the screen dimensions from the server.
* | Merge branch 'vla' of https://github.com/CendioOssman/tigervncPierre Ossman2018-11-212-23/+35
|\ \
| * | Remove variable length arraysPierre Ossman2018-11-072-12/+17
| | | | | | | | | | | | | | | These are not allowed in C++, and have been made optional in C11. So let's just get rid of them and any issues they may cause.
| * | Update gettext.h to latest versionPierre Ossman2018-11-071-11/+18
| | |
* | | Merge branch 'covscan' of https://github.com/grulja/tigervncPierre Ossman2018-11-215-9/+11
|\ \ \
| * | | Fix memory leaksJan Grulich2018-11-205-9/+11
| | | |
* | | | Save a few X11 server roundtrips by ignoring empty damage regions.Christian Authmann2018-11-111-0/+3
| | | | | | | | | | | | | | | | Logging revealed that a few empty damage regions are emitted on startup. Those don't need to be rendered to the Surface pixmap.
* | | | Prevent rendering uninitialized Pixmap contents on X11Christian Authmann2018-11-111-0/+3
| |/ / |/| | | | | | | | | | | The Pixmap is filled in as updates from the server arrive. Before the first full update, it would contain undefined contents, which would be rendered onto the ViewPort. Clearing the Pixmap is only done on startup and when changing the server resolution, so it's not performance critical.
* | | Fixed handling of AltGr from Windows' touch keyboardPierre Ossman2018-11-061-7/+13
| | | | | | | | | | | | | | | | | | We need to test this always in order to catch Ctrl+AltGr, and to handle release of the key properly. Hopefully there isn't any other case where VK_MENU is sent without a scan code.
* | | Handle AltGr from Windows' touch keyboardPierre Ossman2018-11-061-0/+7
| |/ |/|
* | Fix rendering on big endian systemPierre Ossman2018-10-252-8/+34
| | | | | | | | | | | | Our XRender code assumes a certain pixel layout which was not guaranteed on big endian systems. The previous workaround only worked for some cases, so fix this properly now.
* | Adjust some strings so they are easier to translatePierre Ossman2018-10-251-5/+8
| |
* | Change to https for tigervnc URLPierre Ossman2018-10-192-2/+2
| | | | | | | | Our main web site now supports https, so update all references.
* | Include unix socket in vncviewer usagePierre Ossman2018-09-282-4/+17
|/ | | | | | | | We've had support for unix sockets for a while now. Make sure this is reflected in the -help output and the man page. Also make some minor tweaks to the section to get everything in sync with reality.
* Avoid compiler "use of uninitialised variable" warningsPierre Ossman2018-09-131-0/+6
| | | | | The compiler isn't smart enough to figure all of these out, so restructure things a bit to avoid warnings.
* Fix multi-head placement of overlay (again)Pierre Ossman2018-09-111-11/+4
| | | | | We should be looking at the physical monitor layout, not the current RFB layout. The latter might not be in sync with the local monitors.
* Remove dead overlay codePierre Ossman2018-09-111-5/+0
| | | | Remnants from an earlier version of the code.
* Center overlay on primary screenPierre Ossman2018-08-161-2/+21
| | | | | Makes sure it is readable in a multi screen configuration, as otherwise it might end up crossing multiple screens.
* Merge branch 'master' of https://github.com/daa/tigervncPierre Ossman2018-08-161-1/+1
|\
| * Increase maximum vnc server name lengthAlexander Duryagin2018-08-151-1/+1
| |
* | Do not perform endianness check on Windows and AppleJan Grulich2018-08-081-1/+6
| |
* | Check endianness when constructing PlatformPixelBuffer()Jan Grulich2018-08-081-2/+2
|/
* Ignore buttons in mouse leave eventsPierre Ossman2018-07-311-1/+4
| | | | | | | | For KDE we can sometimes get a bunch of stray FL_LEAVE events before gaining focus. Sending their included button information gets things in the incorrect order with regard to other synchronisation we do on focus. So just ignore buttons as the only information we want out of the leave information is a position update.
* Reduce size of context menu hintPierre Ossman2018-07-191-5/+8
| | | | | It can get a bit intrusive for experienced users, so try to reduce the impact of it.
* Fix .gitignore for vncviewer/ and tests/Pierre Ossman2018-07-111-0/+3
| | | | | We had partial coverage for vncviewer/ already, but fix up the last pieces.
* Fix try/catch for flushPendingClipboard()Pierre Ossman2018-07-111-10/+10
| | | | | We put the try/catch as close as possible to the writes in all other case, so make sure this code also follows that pattern.
* viewer: reset ctrl / alt to menu state on focusDominique Martinet2018-07-081-0/+6
| | | | | | Setting Ctrl or Alt key on menu only sends the key press, and the state is lost when focus is lost and recovered. This checks the menu variable and sends the keys again if needed.
* Merge branch 'grab' of https://github.com/CendioOssman/tigervncPierre Ossman2018-06-131-9/+48
|\
| * Ignore fake focus events from XGrabKeyboard()Pierre Ossman2018-06-121-0/+44
| | | | | | | | | | | | | | | | Grabbing (and ungrabbing) the keyboard generates fake focus events with modern versions of Xorg. This causes an infinite loop since we update the grab status on focus events. Work around this by ignoring these fake events.
| * Update comment about keyboard grab on focus changesPierre Ossman2018-06-121-9/+4
| | | | | | | | It is no longer a workaround but rather intended behaviour.
* | Better string handling of default server namePierre Ossman2018-06-131-3/+5
|/ | | | | We might not get one from the default configuration (we might not have a default configuration at all), so make things more robust.
* Properly sync LED state on connectPierre Ossman2018-06-072-0/+12
| | | | | | 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.
* Merge branch 'unix' of https://github.com/CendioOssman/tigervncPierre Ossman2018-05-292-6/+30
|\
| * Add support for Unix socketsPierre Ossman2018-05-291-3/+15
| | | | | | | | Patch originally by Dag-Erling Smørgrav for University of Oslo.
| * Use abstract SocketListener classPierre Ossman2018-05-041-3/+3
| | | | | | | | | | Makes the code more general and not directly tied to specifically TCP sockets.
* | Don't require server name in config filePierre Ossman2018-05-292-11/+10
| | | | | | | | | | The user might just want to load a bunch of settings and not initiate a connection.
* | Merge branch 'config_as_an_argument' of https://github.com/Kypert/tigervncPierre Ossman2018-05-292-2/+47
|\ \
| * | Accept a cfg as an argument as an alt way to start the viewerMathias Jonsson2018-05-222-2/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Stop treating "\\\\" as a special casePierre Ossman2018-05-291-35/+20
| | | | | | | | | | | | Make the code simpler by handling it just like any escaped character.
* | | Fix parameter escape sequence parsingPierre Ossman2018-05-291-1/+1
| |/ |/| | | | | We decoded "\\n" as "n" rather than "\n".
* | Update fullscreen window if changing fullScreenAllMonitors optionPeter Åstrand (astrand)2018-05-021-2/+5
|/