aboutsummaryrefslogtreecommitdiffstats
path: root/unix
Commit message (Collapse)AuthorAgeFilesLines
* Allow empty value for config valuesLinn Mattsson2024-10-091-1/+1
| | | | | | Fixed so config variables can pass an empty argument. Solves issue #1791.
* Merge branch 'errno' of github.com:CendioOssman/tigervncPierre Ossman2024-10-093-3/+3
|\
| * Consistently use SocketException for socket errorsPierre Ossman2024-10-093-3/+3
| | | | | | | | | | | | The behaviour is not consistent as Windows doesn't use errno for socket errors, but Unix systems do. Always use the same exception to keep things somewhat sane.
* | Add clipboard support to x0vncserverGaurav Ujjwal2024-09-259-14/+344
|/
* Improve error messages for base directory creationPierre Ossman2024-08-292-3/+4
|
* Handle existing config directory in vncpasswdPierre Ossman2024-08-151-2/+4
| | | | This fixes commit a79c33d.
* Let pwquality check minimum lengthPierre Ossman2024-08-151-7/+10
| | | | | This is a policy decision, so let's not enforce something on our own if there is a system policy to rely on.
* Merge branch 'master' of https://github.com/prownd/tigervncPierre Ossman2024-08-152-0/+51
|\
| * Limit the maximum length of a password to 8 charactershanjinpeng2024-08-141-0/+5
| | | | | | | | | | Password should not be greater than 8 characters. Because only 8 valid characters are used.
| * vncpasswd add password complexity rule check to enhance securityhanjinpeng2024-08-142-0/+46
| | | | | | | | | | Use the library pwquality to check password complexity and improve security. Additionally, optional enable support is also set in CMake.
* | Merge branch 'old-log' of https://github.com/jcpunk/tigervncPierre Ossman2024-08-141-11/+36
|\ \
| * | vncsession: Move existing log to log.old if presentPat Riehecky2024-08-131-11/+36
| | |
* | | Better type for pointer button maskPierre Ossman2024-08-124-5/+5
| | | | | | | | | | | | | | | This is a very limited bit field, so use an 8 bit type to clearly show how many bits are available.
* | | Remove InputHandler interfacePierre Ossman2024-08-122-4/+0
| | | | | | | | | | | | | | | The different uses of this interface are not that closely related and there is no need for them to have a common interface class.
* | | Improve x0vncserver key allocation log linePierre Ossman2024-08-061-1/+2
| | | | | | | | | | | | | | | Follow the standard XK_ prefix, and also include the hex value for easier debugging.
* | | Merge branch 'fix-unknown-keysym' of https://github.com/gujjwal00/tigervncPierre Ossman2024-08-065-19/+155
|\ \ \ | |/ / |/| |
| * | Improve unknown keysym handlingGaurav Ujjwal2024-06-305-19/+155
| | | | | | | | | | | | | | | | | | Instead of giving up after all free keycodes have been used, Keycodes from previously added keysyms will be reused. Re: #93
* | | vncsession: use /bin/sh if the user shell is not setCarlos Santos2024-07-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An empty shell field in the password file is valid, although not common. Use /bin/sh in this case, as documented in the passwd(5) man page, since the vncserver script requires a non-empty SHELL environment variable. Fixes issue #1786. Signed-off-by: Carlos Santos <casantos@redhat.com>
* | | Generate better (fake) modelinesPierre Ossman2024-07-234-5/+66
| | | | | | | | | | | | | | | This is what Xwayland does, so let's try to do the same to avoid any incompatibilites with applications.
* | | Fix x0vncserver handling of timersPierre Ossman2024-07-051-3/+3
|/ / | | | | | | Bug fix for bf28683.
* | Merge branch 'c++11' of github.com:CendioOssman/tigervncPierre Ossman2024-06-2424-250/+237
|\ \
| * | Avoid shadowing variablesPierre Ossman2024-06-243-14/+14
| | | | | | | | | | | | | | | It's a source of confusion and possibly bugs to reuse the same variable name for multiple things.
| * | Simplify RandR output name handlingPierre Ossman2024-06-241-36/+26
| | | | | | | | | | | | | | | Store the name in a std::string to make things less complex as we don't need to be as careful about making sure the data is free():d.
| * | Avoid redundant argumentsPierre Ossman2024-06-242-14/+14
| | | | | | | | | | | | | | | Remove redundant arguments where the method already has access to the relevant variable as an object attribute.
| * | Simplify code using range-based for loopsPierre Ossman2024-06-242-23/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | Prefer std::find() over manual searchPierre Ossman2024-06-241-6/+6
| | | | | | | | | | | | | | | Let's avoid reimplementing something basic that's available in the standard library. It also makes the code easier to read.
| * | Mark overridden virtual functionsPierre Ossman2024-06-2411-48/+48
| | | | | | | | | | | | | | | 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-2417-109/+116
| | | | | | | | | | | | | | | 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-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
| |