With this, X servers don't have to parse this option separately,
and can just use it after including dix-config.h
Linux kdrive servers (currently Xfbdev only) now support logging.
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
These values are also used in at the toplevel, and we're going to
have more uses there for xorg-sdk-only builds.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
We only need the config attribute list from the caller,
we can chose the configs and free them ourselves
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
Now that we're first trying no-config contexts,
there is no need to inject an `EGL_NO_CONFIG_KHR`
as the first config in the returned list
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
Only the render acceleation and xv work for some reason.
glx only wants to create indirect contexts, which don't work.
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
It will likely be slower that unaccelerated rendering.
Command-line flags were added for overriding this.
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
This makes it so that glamor glx can properly initialize and
choose hw accelerated `FBConfig`s, instead of just using softpipe/llvmpipe.
This commit fixes the issue described in https://github.com/X11Libre/xserver/pull/1832#issue-3827524680
Now, `FBConfig`s corresponding to the choosen accelerated `EGLDevice`
are choosen by `glXChooseFBConfig`.
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
Not used by any external module/driver, so no need to keep it
public. Also move it to the new dix settings code and rename it.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Now that this driver works on most systems (hopefully) without any configuration,
it makes sense to use it as a fallback default.
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
When starting an X server from a terminal running
inside another X server, the "host" X server sees
the key press event, but not the key release event,
and misinterprets this as a long keypress.
With this patch, we forge the missing key release event,
so the server doesn't think that the user is holding a key down.
This is different from Ctrl + Alt + F* vt switching, because
there we don't want the X server to see the key press event at all,
and we want to forge key release events for the Ctrl + Alt keys.
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
When rapidly switching vt's, it can happen that shadow tries to
draw to the screen before it's initialized.
In that case, we return NULL, and we should also return a zero size,
because shadow doesn't check for NULL.
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
Zapping is the fastest way to kill the X server, faster than vt switching,
or killing the window manager and configuring the X server to die with it.
It is very useful when debugging, or if the system runs very low on memory
This adds the `-nozap` argument, for restoring the old behavior.
The `-zap` argument is also kept for backwards compatibility.
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
It should now work out of the box on most setups
with one mouse and one keyboard.
It probably still breaks on some single mouse and keyboard
setups, and on setups with more than one mouse or keyboard.
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
This is needed for Ctrl + Alt + F* vt switching
and Ctrl + Alt + Backspace server terminate.
We could implement other special keys too, it we want to.
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
We're only interested in vt switching here.
Ctrl + Alt + Backspace server terminate will be handled by it's caller.
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>