| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| |
| |
| |
| |
| | |
Use the more specific already included exception classes for common
errors to keep things more understandable.
|
| |
| |
| |
| |
| | |
Make sure our exceptions are part of the standard exception class
hierarchy.
|
| |
| |
| |
| | |
Harmonize with the standard C++ exceptions.
|
| |
| |
| |
| | |
The sentence was also restructured a bit to improve the flow.
|
|/ |
|
|
|
|
|
| |
This is a very limited bit field, so use an 8 bit type to clearly show
how many bits are available.
|
|\ |
|
| |
| |
| |
| |
| |
| | |
Instead of giving up after all free keycodes have been used, Keycodes from previously added keysyms will be reused.
Re: #93
|
|/
|
|
|
| |
This is what Xwayland does, so let's try to do the same to avoid any
incompatibilites with applications.
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
Use the new "override" keyword to properly differentiate between new
virtual methods, and existing virtual methods being overridden.
|
| |
| |
| |
| |
| | |
It's more readable than 0, and a bit safer than NULL, so let's try to
follow modern norms.
|
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
Allows users to use a secondary GPU, or to disable DRI3 in case of
issues.
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\| |
|
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
This hasn't been needed since Xorg 1.16.
|
| |
| |
| |
| |
| | |
Unclear why this was ever needed. libX11 is for X11 clients, and we're
building a server.
|
| |
| |
| |
| |
| | |
Make things a bit easier to maintain. This style is also more in line
with what is being done for other DDX.
|
| |
| |
| |
| | |
This has never actually been used, as far as I can tell.
|
| |
| |
| |
| |
| | |
Rather than disabling this, make sure the build can find the relevant
file.
|
| |
| |
| |
| |
| | |
VENDOR_RELEASE has been available as a #define since Xorg 1.7, so let's
use that and remove all of our custom magic.
|
|\| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| |
| |
| |
| |
| | |
Let's avoid requring these as a desktop implementation can now set up
everything in the init() method.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
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.
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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>
|
| |/
| |
| |
| |
| |
| |
| | |
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>
|
|/ |
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
It doesn't just control button events, but all types of pointer events,
including movement.
|
|
|
|
|
| |
This affects the ordering of visuals, which breaks some buggy
applications that assume the first visual is the root window visual.
|
| |
|
|
|
|
|
|
|
| |
Use dup() instead to get an available file descriptor to avoid hijacking
already existing descriptor.
Fixes #1709
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.)
|