aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Implement touch gesture handling on UnixAaron Sowry2020-05-2911-23/+2304
| | | | | Allows the user to perform certain important mouse operations using touch gestures instead.
* Cancel AltGr timeout on mouse events as wellSamuel Mannehed2020-05-292-16/+33
| | | | | | | | | | We have a timer after Ctrl is pressed in order to see if an Alt will come right after. Ctrl + Alt is what windows sends for AltGr. If a key other than Alt was pressed we knew that we could cancel this timer, this commit extends that to mouse events too. Since this detection breaks the true order of events we want to make a decision as fast as possible.
* Implement X Input pointer handling for UnixAaron Sowry2020-05-298-19/+647
| | | | | | | | Switch from using Core events to using X Input events for pointer devices in order to differentiate between mouse events and touch events. Because FLTK doesn't understand X Input 2, we intercept these events and translate them to core events where possible.
* Ignore bogus FL_MOVE events from FLTKSamuel Mannehed2020-05-261-0/+6
|
* Fix position for click and drag with EmulateMBAlex Tanskanen2020-05-263-15/+123
| | | | | | | If you have the setting "Emulate middle mouse button" turned on, a click and drag can fail if it is done very quickly. The position of the initial click will be incorrect in such a case because the timeout will delay events.
* Add unit tests for EmulateMBAlex Tanskanen2020-05-262-0/+433
|
* Open X11 display properlyPierre Ossman2020-05-261-7/+7
| | | | | | | We need to make sure everything happens in the correct order during startup for the X11 display to open correctly. Primarily it means we need to parse the arguments and open the display before anything might make any X11 calls, as we may have a -display argument.
* Remove default config alertPierre Ossman2020-05-261-2/+0
| | | | | We don't exit here, so it's not a fatal error. It's also a fairly common scenario, so remove the alert completely.
* Use exit_vncviewer() for early errorsPierre Ossman2020-05-201-12/+16
| | | | Makes things more consistent and avoids surprises.
* Bump up Windows version from Vista to Windows 7Samuel Mannehed2020-05-201-2/+2
|
* Update French translationStéphane Aulery2020-05-081-103/+104
|
* [SELinux] Allow vnc_session_t type execute itselfLukas Vrabec2020-05-061-0/+2
| | | | | | | | vncsession-start is running in SELinux vnc_session_t domain because of "SELinuxContext=system_u:system_r:vnc_session_t:s0" option in systemd vncserver@.service unit file. vncsession-start executing binary vncsession with SELinux label/type vnc_session_t. This access was not allowed in vncsession policy.
* Handle empty changes for every operationPierre Ossman2020-04-201-22/+16
| | | | | | It seems like many of the X11 operations can end up with no pixels actually changing. So instead of discovering and adding workarounds for each individually we'll just check very region added if it's empty.
* Update Serbian translationМирослав Николић2020-04-061-111/+186
|
* Update Ubuntu patches for current codePierre Ossman2020-04-022-24/+16
|
* Update apt cache before running buildsPierre Ossman2020-04-022-0/+2
| | | | | Otherwise it might fail if the repositories have changed since the image was generated.
* Remove legacy Xorg codePierre Ossman2020-04-027-459/+6
| | | | | We now require at least 1.16, so remove all code that handled older versions than that.
* Remove 8-bit support from documentationPierre Ossman2020-04-022-16/+4
| | | | | We removed support in the code ages ago, but overlooked this part of the documentation. Also remove some dead code in Xvnc on the same theme.
* Merge branch 'systemd' of https://github.com/CendioOssman/tigervncPierre Ossman2020-04-0297-10017/+1606
|\
| * Remove support for old Xorg versionsPierre Ossman2020-03-1214-1602/+9
| | | | | | | | No current distribution ship anything this ancient anyway.
| * Use standard install dir variable namesPierre Ossman2020-03-1223-76/+66
| | | | | | | | | | This makes our builds directly compatible with most distributions without packagers/users having to specify extra flags.
| * Add SELinux policy file for vncsessionPierre Ossman2020-03-126-1/+146
| | | | | | | | | | | | Running as a service on a SELinux system requires rules so we can transition to our own context. We also need the proper permissions to start new user sessions.
| * Start sessions via PAMPierre Ossman2020-03-1225-235/+875
| | | | | | | | | | | | | | | | | | This sets up a more correct session as there are key tasks that need to be performed by PAM. E.g. systemd will allocate cgroups and start base services. In order to easily handle this as a system service the mapping of displays is now done via a configuration file.
| * Fix C linking when doing static buildsPierre Ossman2020-03-121-2/+3
| |
| * Make PAM mandatoryPierre Ossman2020-03-128-29/+9
| | | | | | | | | | It is present on all UNIX systems anyway, so let's simplify things. We will need it for more proper session startup anyway.
| * Stop searching for XvncPierre Ossman2020-03-122-31/+3
| | | | | | | | | | Assume we are part of a complete and proper installation and encode the full expected path in to the vncserver script.
| * Start the sessions using xinitPierre Ossman2020-03-122-88/+20
| | | | | | | | | | It keeps much better track of the X server and startup files than we can do.
| * Make vncserver always run in the foregroundPierre Ossman2020-03-122-204/+8
| | | | | | | | | | | | We need to be started as a system service for things to work correctly anyway, so delegate the work of starting and stopping things to the system service manager (e.g. systemd).
| * Start sessions using session desktop filePierre Ossman2020-03-122-88/+126
| | | | | | | | | | This is how display managers (e.g. gdm or lightdm) start sessions and is necessary to get the proper set of environment variables.
| * Don't create a default user configPierre Ossman2020-03-121-20/+0
| | | | | | | | | | We don't want to create files in the users home directory unless we have to. Users can read about how this file works in our man pages.
| * Don't accept arbitrary arguments to vncserverPierre Ossman2020-03-123-244/+19
| | | | | | | | | | We now have config files for more fine grained control of these things, so avoid duplicating the functionality.
| * Stop unsetting environment variablesPierre Ossman2020-03-121-2/+0
| | | | | | | | | | These might contain values we want if we are start from a proper environment.
| * Always install systemd servicesPierre Ossman2020-03-1212-292/+16
| | | | | | | | | | | | | | It is the most common init system these days so it should not be hidden in the contrib/ directory. This also removes all old SysV files from the contrib packages.
| * Add default configuration filesPierre Ossman2020-03-1210-6/+43
| | | | | | | | Install some example files to make things more easily discoverable.
| * Remove old distribution packagingPierre Ossman2020-03-1124-6834/+0
| | | | | | | | | | These are EOL (or soon to be) and we want to start relying on things present in current distributions.
* | Do maximize more properly on macOSPierre Ossman2020-03-263-7/+9
| |
* | Don't resize viewer window when maximizedPierre Ossman2020-03-263-1/+47
| | | | | | | | | | Most window managers won't like this, and it tends to provoke bugs in FLTK, so let's avoid it. It's probably not what the user wants anyway.
* | Include error code in getaddrinfo() exceptionsPierre Ossman2020-03-261-1/+10
| |
* | Avoid using insecure variable length arraysPierre Ossman2020-03-261-1/+2
| |
* | Merge branch 'unicode_translation' of https://github.com/CendioAlex/tigervncPierre Ossman2020-03-173-35/+38
|\ \ | |/ |/|
| * Throw GAIException() for getaddrinfo errorsAlex Tanskanen2020-03-173-8/+28
| | | | | | | | | | | | | | | | Created a new subclass of Exception called GAIException() that will handle error messages from getaddrinfo() instead of letting Exception() handle it. GAIException() will make use of gai_strerror() to map the error code to text. On Windows, gai_strerrorW() must be used if the text is encoded with UTF-8.
| * Fix typo in SocketException messageAlex Tanskanen2020-03-121-1/+1
| |
| * Make system error messeges in Windows 10 use UTF-8Alex Tanskanen2020-03-121-26/+9
| | | | | | | | | | | | The previous error messages did not support Unicode characters. This commit will use UTF-8 encoding to be able to display error messages in every language.
* | Merge branch 'xorg-server-1.20.7' of https://github.com/lheckemann/tigervncPierre Ossman2020-02-271-0/+9
|\ \
| * | xserver: add no-op input thread init functionLinus Heckemann2020-02-011-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | This allows Xvnc to build with xorg-server 1.20.7, which requires OS layers to implement a ddxInputThreadInit function when configured with --enable-input-thread (the default). relevant xorg-server commit: e3f26605d85d987da434640f52646d728f1fe919
* | | Fix error check for zlib callsPierre Ossman2020-02-272-3/+3
| | | | | | | | | | | | | | | There are multiple "okay" return values, not just Z_OK. Make sure we don't bail out needlessly.
* | | Fix framebuffer setup in encperfPierre Ossman2020-02-271-2/+3
| | | | | | | | | | | | We adapted to the wrong new callback in a previous commit.
* | | Provide dummy output for dummy client connectionsPierre Ossman2020-02-272-2/+54
| |/ |/| | | | | | | The CConnection base class wants to be able to write things these days, so we need to provide it a place to do so.
* | Merge pull request #958 from sequencer/env_userpassSamuel Mannehed2020-02-142-1/+15
|\ \ | |/ |/| Read username and passwrod from env.
| * bug fix for user is NULLJiuyang liu2020-02-101-1/+1
| |