aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer
Commit message (Collapse)AuthorAgeFilesLines
* 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
|/
* Merge branch 'clipfocus' of https://github.com/CendioOssman/tigervncPierre Ossman2018-04-205-49/+126
|\
| * Avoid clipboard updates when not focusedPierre Ossman2018-03-262-0/+52
| | | | | | | | | | | | | | 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.
| * Add focus test helper for ViewportPierre Ossman2018-03-262-17/+14
| |
| * Handle LED state sync entirely in ViewportPierre Ossman2018-03-263-6/+17
| | | | | | | | | | Apply workaround for FLTK's bad focus handling so that we can let Viewport handle LED synchronisation without help from DesktopWindow.
| * Move server cut text handler to ViewportPierre Ossman2018-03-265-26/+43
| | | | | | | | | | That way both incoming and outgoing clipboard are both in the same place, making things clearer.
* | Stop abusing InputHandler class for write classPierre Ossman2018-03-282-7/+10
|/ | | | | | 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.
* Replace "frames" with "updates" in statsPierre Ossman2018-03-264-21/+21
| | | | | | 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.
* Merge branch 'altgraph' of https://github.com/CendioOssman/tigervncPierre Ossman2018-03-084-34/+127
|\
| * Handle Ctrl+AltGr on WindowsPierre Ossman2018-03-083-17/+77
| | | | | | | | | | Improve AltGr detection even further on Windows so we can detect the case when Ctrl and AltGr are pressed together.
| * Better detection of AltGr on WindowsPierre Ossman2018-03-082-34/+67
| | | | | | | | | | | | 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.
* | Fix incorrect numbers in performance debug graphPierre Ossman2018-02-261-3/+3
|/ | | | | | | | | 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
* Update visible copyright year to 2018Samuel Mannehed2018-02-082-2/+2
|
* Rename README.txt to README.rst and convert to reStructuredTextPeter Åstrand (astrand)2018-01-312-2/+2
|
* Don't parse FLTK arguments using Fl::arg; handle -display as other optionsPeter Åstrand (astrand)2018-01-293-3/+7
| | | | | | Fl::arg accepts several arguments which we are not documenting. Also, it accepts a -geometry argument, which clashes with our own -geometry option.
* Update UI look on macOSPierre Ossman2018-01-221-5/+5
| | | | | macOS no longer uses the old Aqua look, so tweak our things to fit in better with the current state of things.
* Use current server time for XUngrabPointerPeter Åstrand (astrand)2018-01-151-1/+1
| | | | | | Similar to 841e9f32d5952d6f16f67294c2da8bf395066a9b but for the pointer. Fixes a problem where the desktop environment is unresponsive (to the mouse) after fullscreen exit; Fixes #579.
* Merge branch 'pause' of https://github.com/CendioOssman/tigervncPierre Ossman2017-11-172-8/+37
|\
| * Send proper keysym when Break is pressedPierre Ossman2017-11-131-0/+1
| | | | | | | | | | Ctrl+Pause sends break which results in a different VKEY on Windows. Make sure we map that properly to the equivalent keysym.
| * Handle right shift better on WindowsPierre Ossman2017-11-131-0/+14
| | | | | | | | | | The shift buttons are a bit buggy on Windows unfortunately, but we can do slightly better than we're doing today.
| * Handle Windows scan code exceptionsPierre Ossman2017-11-131-9/+23
| | | | | | | | | | Windows mostly follows the AT set 1 scan codes that we want, but there are a few exceptions.
* | Remove double cursor workaround in clientPierre Ossman2017-11-171-6/+0
| | | | | | | | | | We've fixed the issue more properly in the server now, so remove the workaround we had in the client.
* | Handle FLTK arguments at any positionPierre Ossman2017-11-141-16/+21
| | | | | | | | E.g. vncviewer server.example.com:2 -display :2
* | Don't open X11 display too earlyPierre Ossman2017-11-141-5/+5
|/ | | | | We have to wait until we've passed the command line arguments or we might overlook a -display argument.