aboutsummaryrefslogtreecommitdiffstats
path: root/unix/xserver/hw/vnc
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'stdexcept' of github.com:CendioOssman/tigervncPierre Ossman2024-11-073-41/+40
|\
| * Use standard exception classesPierre Ossman2024-11-061-1/+1
| | | | | | | | | | Use the more specific already included exception classes for common errors to keep things more understandable.
| * Subclass exceptions from std::exceptionPierre Ossman2024-11-063-21/+20
| | | | | | | | | | Make sure our exceptions are part of the standard exception class hierarchy.
| * Use what() to access exception descriptionPierre Ossman2024-11-062-19/+19
| | | | | | | | Harmonize with the standard C++ exceptions.
* | Don't use login as a verb in Xvnc.manAlexander Zeijlon2024-11-041-2/+2
| | | | | | | | The sentence was also restructured a bit to improve the flow.
* | Fudge library path to work around dependency loopsPierre Ossman2024-10-311-5/+8
|/
* Better type for pointer button maskPierre Ossman2024-08-122-2/+2
| | | | | This is a very limited bit field, so use an 8 bit type to clearly show how many bits are available.
* Merge branch 'fix-unknown-keysym' of https://github.com/gujjwal00/tigervncPierre Ossman2024-08-063-3/+95
|\
| * Improve unknown keysym handlingGaurav Ujjwal2024-06-303-3/+95
| | | | | | | | | | | | Instead of giving up after all free keycodes have been used, Keycodes from previously added keysyms will be reused. Re: #93
* | Generate better (fake) modelinesPierre Ossman2024-07-232-3/+34
|/ | | | | This is what Xwayland does, so let's try to do the same to avoid any incompatibilites with applications.
* Merge branch 'c++11' of github.com:CendioOssman/tigervncPierre Ossman2024-06-245-43/+42
|\
| * Simplify code using range-based for loopsPierre Ossman2024-06-241-5/+2
| | | | | | | | | | | | | | | | | | These are often more readable as they avoid a lot of the boilerplate of iterating over fixed arrays or STL containers. Note that this change is very conservative to avoid noise in "git blame". Only loops where this is a clear improvement have been converted.
| * Mark overridden virtual functionsPierre Ossman2024-06-241-14/+14
| | | | | | | | | | Use the new "override" keyword to properly differentiate between new virtual methods, and existing virtual methods being overridden.
| * Use nullptr in all C++ codePierre Ossman2024-06-243-24/+24
| | | | | | | | | | It's more readable than 0, and a bit safer than NULL, so let's try to follow modern norms.
| * Make sure we use C++ 11Pierre Ossman2024-06-241-0/+2
| | | | | | | | | | | | It's rare we use a compiler that has anything older as a default, but it does happen sometimes. So make sure to guarantee this so we can start using more modern constructs.
* | Change development version to 1.14.80Pierre Ossman2024-06-201-1/+1
| |
* | Merge branch 'dri3' of github.com:CendioOssman/tigervncPierre Ossman2024-06-207-29/+1442
|\ \ | |/ |/|
| * 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-201-1/+1
| | | | | | | | | | | | | | | | 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-205-0/+1337
| | | | | | | | | | | | | | | | | | 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.
| * 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-194-35/+29
|\|
| * Avoid patching miinitext.c for XvncPierre Ossman2024-06-192-15/+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-191-18/+11
| | | | | | | | | | 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-194-9/+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-198-21/+208
|\|
| * 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-192-3/+7
| | | | | | | | | | | | | | | | | | 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-192-4/+2
| | | | | | | | | | | | 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-191-1/+1
| | | | | | | | | | 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.
* | Merge branch 'casantos-rhbz_2180903' of https://github.com/casantos/tigervncPierre Ossman2024-05-205-13/+15
|\ \
| * | vncconfig: add option to force view-only remote client connectionsCarlos Santos2024-04-265-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | 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-262-5/+5
| |/ | | | | | | | | | | | | 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>
* / Implement XDG Base Directory paths, deprecate ~/.vnc902024-04-261-1/+1
|/
* 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-061-1/+1
| | | | | It doesn't just control button events, but all types of pointer events, including movement.
* 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
|
* 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 'keysym' of github.com:CendioOssman/tigervncPierre Ossman2023-12-131-7/+15
|\
| * Add own keysym to name functionPierre Ossman2023-11-161-7/+15
| | | | | | | | | | | | | | | | | | 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.
* | 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.)