aboutsummaryrefslogtreecommitdiffstats
path: root/unix
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Merge branch 'dri3' of github.com:CendioOssman/tigervncPierre Ossman2024-06-2011-87/+1623
|\ \ \ | |/ / |/| |
| * | Automatically pick a suitable DRI3 render nodePierre Ossman2024-06-202-4/+37
| | | | | | | | | | | | | | | | | | Lay the groundwork for a more intelligent selection of GPU in systems that have multiple cards. This initial implementation simply picks the first GPU that we have permission to open.
| * | Add option to specify used DRI3 render nodePierre Ossman2024-06-204-1/+31
| | | | | | | | | | | | | | | Allows users to use a secondary GPU, or to disable DRI3 in case of issues.
| * | Hide from GNOME to enable animationsPierre Ossman2024-06-202-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | One GNOME developer had a bad experience with VNC one time, and therefore all VNC must forever be punished. Avoid detection by GNOME so that animations aren't forcefully disabled without any option for the user to re-enable them.
| * | Add basic DRI3 supportPierre Ossman2024-06-208-76/+1465
| | | | | | | | | | | | | | | | | | | | | | | | | | | This provides buffer sync with the primary render node of the system (if available). By doing so, OpenGL and Vulkan can use the render node for acceleration. This first implementation is extremely pessimistic and synchronises buffers whenever there's even a slight chance they will be used.
| * | Fix includes for Xorg dri3 modulePierre Ossman2024-06-201-0/+71
| | | | | | | | | | | | | | | | | | | | | It was incorrectly designed to only build properly if built as part of the "Xorg" server and could fail to build when just "Xvnc" was built. Backport of upstream commits 0ce93e5 and acc581c.
| * | Avoid VNC updates for offscreen windowsPierre Ossman2024-06-201-28/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | Windows aren't always directly shown, e.g. when the desktop is composited. We should not be sending screen updates for these as the framebuffer didn't actually change. In the case of CopyWindow, we're even sending the wrong screen data, which is how this bug was discovered.
* | | Merge branch 'xserver-cleanup' of github.com:CendioOssman/tigervncPierre Ossman2024-06-1910-617/+31
|\| |
| * | Raise Xorg requirement to 1.20+Pierre Ossman2024-06-194-337/+0
| | | | | | | | | | | | | | | No current distribution uses anything older, so let's make things easier for us to maintain.
| * | Avoid patching miinitext.c for XvncPierre Ossman2024-06-198-150/+12
| | | | | | | | | | | | | | | | | | Things do not need to be this complicated. We can make sure the VNC extension is always included in a much cleaner way, at least since Xorg 1.16.
| * | Stop explicitly including fbcmap_mi.cPierre Ossman2024-06-191-1/+1
| | | | | | | | | | | | This hasn't been needed since Xorg 1.16.
| * | Stop linking to libX11Pierre Ossman2024-06-191-1/+1
| | | | | | | | | | | | | | | Unclear why this was ever needed. libX11 is for X11 clients, and we're building a server.
| * | Clean up CPPFLAGS handling in xserverPierre Ossman2024-06-197-30/+17
| | | | | | | | | | | | | | | Make things a bit easier to maintain. This style is also more in line with what is being done for other DDX.
| * | Remove unused NO_MODULE_EXTS definePierre Ossman2024-06-191-1/+1
| | | | | | | | | | | | This has never actually been used, as far as I can tell.
| * | Actually use config.h in Xvnc/libvnc.soPierre Ossman2024-06-191-3/+6
| | | | | | | | | | | | | | | Rather than disabling this, make sure the build can find the relevant file.
| * | Simplify Xorg version handlingPierre Ossman2024-06-1910-111/+10
| | | | | | | | | | | | | | | VENDOR_RELEASE has been available as a #define since Xorg 1.7, so let's use that and remove all of our custom magic.
* | | Merge branch 'present' of github.com:CendioOssman/tigervncPierre Ossman2024-06-1914-33/+225
|\| | | |/ |/|
| * Keep frame clock running if waiting for frame tickPierre Ossman2024-06-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | If there is something interested in synchronizing to a frame tick, then keep the frame clock running, even if there are no updates. This is need mainly when something starts rendering, but also when something renders much slower than the frame clock (so it is essentially constantly "starting"). Such an application will not draw anything until it gets a new frame tick, which it won't get as the frame clock is waiting for something to start drawing.
| * Add support for X Present extensionPierre Ossman2024-06-198-6/+200
| | | | | | | | | | | | | | This makes it possible for applications to synchronize their updates to the updates sent out to clients. This avoids tearing, and could in the future also help with rate limiting applications to what the client can actually show.
| * Add missing ErrorF() newlinesPierre Ossman2024-06-191-3/+3
| |
| * Make SDesktop::start()/stop() optionalPierre Ossman2024-06-192-10/+0
| | | | | | | | | | Let's avoid requring these as a desktop implementation can now set up everything in the init() method.
| * Maintain a constant VNCServer/SDesktop connectionPierre Ossman2024-06-194-8/+15
| | | | | | | | | | | | | | | | | | The desktop isn't completely paused just because there are no clients, so it might still need some support from the server object. This is primarily an issue for headless servers, where they need to continue emulating things even without clients. A scraping server can generally go completely passive if there are no clients.
| * Explicitly request timer repetitionPierre Ossman2024-06-194-8/+5
| | | | | | | | | | | | One-shot timers are more common, so let's change the API a bit to make that use case simpler. This API also makes it more clear what is happening.
| * Stop treating "0" as "no timeouts"Pierre Ossman2024-06-193-4/+7
| | | | | | | | | | It is much more sane to treat "0" as "a timer is ready NOW", so let's change to using -1 as the invalid timeout value.
* | Create common recursive mkdir()Pierre Ossman2024-05-302-31/+31
| | | | | | | | | | | | | | Avoid duplicating this complexity in too many places. At the same time make the interface more identical to regular mkdir(), for familiarity.
* | Only do restorecon() for legacy directoryPierre Ossman2024-05-301-12/+12
| | | | | | | | | | This is only needed because of an historical type change of the legacy directory, so avoid doing it anywhere else.
* | Fix late vncsession loggingPierre Ossman2024-05-301-0/+7
| | | | | | | | | | | | | | | | | | The syslog file descriptor will be closed when we are cleaning up in preparation for running the vncserver script, so we need to explicitly reopen things in case we need to log errors. At the same time, try to be polite and explicitly close the log when appropriate.
* | Respect PAM modules for $XDG_STATE_HOMEPierre Ossman2024-05-301-3/+16
| | | | | | | | | | E.g. pam_env.so might modify this variable, so we should see what we get out of PAM when building a log file path.
* | Add comment that PAM configuration is an examplePierre Ossman2024-05-201-0/+4
| | | | | | | | | | | | There is too much variation between distributions for us to have a good PAM configuration that works everywhere. Try to make this more obvious by having a comment at the top of the file.
* | Merge branch 'casantos-rhbz_2180903' of https://github.com/casantos/tigervncPierre Ossman2024-05-2010-23/+34
|\ \
| * | vncconfig: add option to force view-only remote client connectionsCarlos Santos2024-04-269-18/+27
| | | | | | | | | | | | | | | | | | | | | | | | Specifies that the server must ignore all keyboard or mouse events sent by the client. Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2180903 Signed-off-by: Carlos Santos <casantos@redhat.com>
| * | Remove the network::SocketServer interface.Carlos Santos2024-04-263-5/+7
| |/ | | | | | | | | | | | | Move these RFB specific things to rfb::VNCServer, for clarity. Signed-off-by: Pierre Ossman <ossman@cendio.se> Signed-off-by: Carlos Santos <casantos@redhat.com>
* | Merge pull request #1737 from 62832/fix-1195Samuel Mannehed (ThinLinc team)2024-05-0712-64/+158
|\ \ | | | | | | Allow for alternative user config locations, deprecate `~/.vnc` in favour of XDG Base Directory Specification paths
| * | Implement XDG Base Directory paths, deprecate ~/.vnc902024-04-2612-68/+154
| | |
| * | Begin work on XDGBDS compliance and overrideable configs902024-03-152-7/+15
| |/
* | 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.
* 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-062-2/+2
| | | | | 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)
* Set all HAVE_ macros on the top levelPierre Ossman2024-01-242-8/+3
| | | | 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.
* 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.
* x0vncserver: Add support for systemd socket activationMike Looijmans2024-01-123-29/+62
| | | | | | | | | | 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>
* 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-091-1/+1
|