aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Begin work on XDGBDS compliance and overrideable configs902024-03-159-56/+151
| | |/ | |/|
* | | Add .gitignore for SELinux filesPierre Ossman2024-04-261-0/+2
| | |
* | | Don't trigger build from install targetPierre Ossman2024-04-261-1/+1
| | | | | | | | | | | | | | | | | | The norm is that the install target is read only from the point of view of the source and build directory, so avoid accidentally triggering any build.
* | | Clean up temporary SELinux directoryPierre Ossman2024-04-261-0/+1
| | |
* | | Overwrite vncsession.pp.bz2 each timePierre Ossman2024-04-261-1/+1
| |/ |/| | | | | | | Make it easier to work iteratively by not having to remove the output file each time.
* | Use XQueryPointer() instead to detect zaphodPierre Ossman2024-04-101-4/+8
| | | | | | | | | | | | FLTK can send events with fl_xevent pointing to random memory, which means that we cannot trust that structure. XQueryPointer() can give us what we need, at the cost of an extra round trip.
* | Correctly set socket write notificationPierre Ossman2024-04-091-2/+0
| | | | | | | | | | That extra add_fd() only set the read notification, overwriting any write notification set up in the lines just above.
* | Update github actions to latest versionsPierre Ossman2024-04-021-11/+11
| | | | | | | | Primarily to avoid the versions that are now deprecated.
* | Merge pull request #1742 from TigerVNC/issue843Brian Hinz2024-03-301-18/+15
|\ \ | |/ |/| Fix for issue 843
| * Fix for issue 843Brian P. Hinz2024-03-301-18/+15
|/
* Don't link gcrypt for static GnuTLSPierre Ossman2024-03-151-5/+0
| | | | | | GnuTLS seems to have dropped grypt support ages ago, so let's not confuse things by assuming it might be needed when linking GnuTLS statically.
* Properly propagate CursorWarpedTo()Pierre Ossman2024-03-141-0/+5
| | | | | Although unlikely, there might be other parts of the X server that are also interested in this call. Make sure we propagate things on properly.
* Clarify AcceptPointerEvents settingPierre Ossman2024-02-063-3/+3
| | | | | It doesn't just control button events, but all types of pointer events, including movement.
* Fix shared memory leakAdam Halim2024-01-261-1/+1
| | | | | | | | The MIT-SHM documentation: https://www.x.org/releases/X11R7.7/doc/xextproto/shm.html says to run XShmDetach() first, and then to destroy the segment. (cherry picked from commit 585ee24d4cd81759ca7206d5d5181a491c2e8898)
* Increase time required to override pointerClientSamuel Mannehed2024-01-261-1/+1
| | | | | | | | | | | | | | | | | | Mouse events in shared connections are locked to one viewer at a time. If the a mouse drag is happening in the first viewer, the second viewer can't interfere unless the first viewer has been inactive for a set amount of time. This timeout was put in place in 71c83b479335337b25dc331d3fb4a6e29382ceb5 to handle the case where the first viewer disconnects while the mouse drag is happening. Prior to the timeout, this resulted in all input being blocked. This commit increases this timeout from 3 seconds to 10 seconds. This is to minimize the risk of this happening during "normal" use. With this change, the first viewer has to be inactive for 10 seconds before the second viewer can take control again. In the case where the first viewer disconnects, a waiting time of 10 seconds for the second viewer seems very reasonable.
* Break long lines in new pointerEvent logicSamuel Mannehed2024-01-261-3/+4
|
* Fix bad variable reference in file loggerPierre Ossman2024-01-251-1/+1
|
* Merge pull request #1718 from MikeLooijmans/server-mousebuttonowner-timeoutlinma (ThinLinc team)2024-01-252-2/+8
|\ | | | | VNCServerST: Add a timeout to pointer button ownership
| * VNCServerST: Add a timeout to pointer button ownershipMike Looijmans2024-01-222-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When one clients holds down a button on the pointer device (probably dragging something), other clients' attempts at pointer operations are denied. This yields a sane user experience, but with limits. When one clients starts dragging, and then his network connection fails, other clients are denied access to the pointer until the VNC server finally discovers that the connection is dead and closes it. This can take about 15 minutes. Add a timeout to this policy: If we don't hear from the client for 3 seconds, other clients are allowed to control the pointer once more. This solves the problem that one failing network could make the server completely deaf to other clients for a long time. Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
* | Set all HAVE_ macros on the top levelPierre Ossman2024-01-244-9/+18
| | | | | | | | This keep everything consistent.
* | Remove superfluous X11_FOUND checkPierre Ossman2024-01-241-4/+4
| | | | | | | | It is REQUIRED in this context, so we can assume X11 has been found.
* | Merge branch 'systemd' of https://github.com/CendioOssman/tigervncPierre Ossman2024-01-245-3/+64
|\ \ | |/ |/|
| * Document optional libsystemd requirementPierre Ossman2024-01-241-0/+3
| |
| * Allow combining socket activation and extra portsPierre Ossman2024-01-242-36/+50
| | | | | | | | | | | | The common use case is probably to only listem to the systemd provided socket when using socket activation, but it might not be the only use case. Make sure things can be combined if explicitly requested.
| * Log when sd_listen_fds() failsPierre Ossman2024-01-241-0/+5
| |
| * Use SD_LISTEN_FDS_START constantPierre Ossman2024-01-241-4/+2
| | | | | | | | Avoid magical numbers as it makes it hard to understand the code.
| * Make systemd detection more robustPierre Ossman2024-01-241-1/+6
| | | | | | | | | | We don't need to look for this on Windows or macOS, and we need to be able to gracefully handle systems without pkg-config.
| * x0vncserver: Add support for systemd socket activationMike Looijmans2024-01-124-29/+65
| | | | | | | | | | | | | | | | | | | | systemd can pass in sockets as file descriptors 3 and beyond. Allows the server to use socket activation. When triggered by systemd, no other listening sockets (e.g. rfbport) will be activated. Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
* | VNCSConnectionST: Release mouse button(s) on closeMike Looijmans2024-01-151-0/+3
|/ | | | | | | | | | | | | | | | | | | | | When the connection is severed, release all mouse buttons. This fixes an issue with x0vncserver where the local display would stop responding to mouse events if the connection closes while the remote user was holding down a mouse button. To reproduce, start a VNC client, press and hold a mouse button and then kill the connection (e.g. close client, kill server, yank network cable). This caused the local screen to no longer respond to any mouse-down events until a VNC client reconnects and clicks anywhere. This may inject a "mouse release" event while closing, however, if you click on your screen and then yank the mouse cable, a mouse release event also would not come unexpectedly, so the cure's side effects aren't as bad as the disease. Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
* Set Pixmap depths after creating visualsPierre Ossman2024-01-101-2/+2
| | | | | This affects the ordering of visuals, which breaks some buggy applications that assume the first visual is the root window visual.
* Update copyright year to 2024Samuel Mannehed2024-01-099-10/+10
|
* Xvnc: do not use dup2() to create a file descriptor for -inetd optionJan Grulich2024-01-081-2/+4
| | | | | | | Use dup() instead to get an available file descriptor to avoid hijacking already existing descriptor. Fixes #1709
* Merge branch 'master' of https://github.com/zmudc/tigervncPierre Ossman2023-12-282-9/+39
|\
| * Add option to run vncsession without forking and detachingChuck Zmudzinski2023-11-202-9/+39
| | | | | | | | | | | | | | | | | | | | | | | | Option is -D, which is what sshd uses for the same option. Also add description of the new option to the vncsession man page. Tested on Void Linux using the new option, also tested on Fedora without using the new option. Resolves #1649
* | Merge branch 'master' of https://github.com/LMattsson/tigervncPierre Ossman2023-12-281-11/+14
|\ \
| * | Update server configure example to RHEL 9Linn Mattsson2023-12-221-8/+5
| | | | | | | | | | | | | | | Some of the flags have been removed and we don't need to consider 32-bit libraries anymore.
| * | Remove unnecessary step from building the serverLinn Mattsson2023-12-221-1/+0
| | | | | | | | | | | | | | | It seems this folder is created when building the vncviewer, which has to be built before the server.
| * | Clarify details about requirements in BUILDING.txtLinn Mattsson2023-12-221-1/+5
| | |
| * | Add missing requirements to BUILDING.txtLinn Mattsson2023-12-221-1/+4
| | |
* | | Prevent incorrect cmake usagePierre Ossman2023-12-284-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's a reoccurring issue that users try to build individual components by pointing cmake at a specific subdirectory, e.g. 'cmake vncviewer'. CMake, unfortunately, has insufficient protection against this so we'll need to add a manual check. This commit only adds it to the most likely places for misuse so we don't have to pollute every CMakeLists.txt.
* | | Merge branch 'keysym' of github.com:CendioOssman/tigervncPierre Ossman2023-12-1314-2442/+7259
|\ \ \
| * | | Automatically generate keyucsmap.hPierre Ossman2023-12-132-54/+109
| | | | | | | | | | | | | | | | | | | | All the information we need is now available in keysymdef.h, so let's get everything updated and in sync.
| * | | Move Keysym/Unicode mapping table to separate filePierre Ossman2023-12-132-789/+800
| | | | | | | | | | | | | | | | Make it easier to see what's code and what's just a lot of data.
| * | | Move dead/combining keys to separate tablePierre Ossman2023-12-131-39/+82
| | | | | | | | | | | | | | | | | | | | This is a manually set up table specific for TigerVNC. For clarity, separate it out from the general keysym/Unicode table.
| * | | Update keysym header filesPierre Ossman2023-11-162-1594/+2772
| | | | | | | | | | | | | | | | This make sure we have any new defines, in case we want to use them.
| * | | Add own keysym to name functionPierre Ossman2023-11-169-22/+3552
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | This is mainly a copy of XKeysymToString() from libX11. We've also added a wrapper that still gives a string, even if there is no name for the requested keysym. This grows the binaries a bit, but not with any extreme amount so is hopefully worth it to get better debug logging.
* | | Fix logging when no working VeNCrypt typesPierre Ossman2023-12-121-3/+3
| |/ |/| | | | | Otherwise it will log that we chose the (invalid) type 0.
* | Replace INITARGS with void in function parameter listFlorian Weimer2023-11-221-2/+2
| | | | | | | | | | | | | | | | Most compilers currently accept arbitrary identifiers in this place and ignore then, but this is going to change and turn into an error. (It prevents compilers from diagnosing misspelled type names, and the resulting declaration is not a prototype, so no type errors will be reported at call sites.)
* | Merge branch 'zrlee-compression-level' of ↵Pierre Ossman2023-11-204-14/+17
|\ \ | |/ |/| | | https://github.com/adamhalim/tigervnc-suite
| * Use compressionLevel in ZRLEEncoderAdam Halim2023-11-204-14/+17
| | | | | | | | | | | | This change makes the ZRLEEncoder respect a client's desired compressionLevel. The ZlibLevel option is marked deprecated and removed from the manpages.