xserver/include
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Olivier Fourdan e167299f60 xfixes: Add ClientDisconnectMode
With Wayland compositors now being able to start Xwayland on demand, the
next logical step is to be able to stop Xwayland when there is no more
need for it.

The Xserver itself is capable of terminating itself once all X11 clients
are gone, yet in a typical full session, there are a number of X11
clients running continuously (e.g. the Xsettings daemon, IBus, etc.).

Those always-running clients will prevent the Xserver from terminating,
because the actual number of X11 clients will never drop to 0. Worse,
the X11 window manager of a Wayland compositor also counts as an X11
client, hence also preventing Xwayland from stopping.

Some compositors such as mutter use the XRes extension to query the X11
clients connected, match their PID with the actual executable name and
compare those with a list of executables that can be ignored when
deciding to kill the Xserver.

But that's not just clumsy, it is also racy, because a new X11 client
might initiate a connection the X11 server right when the compositor is
about to kill it.

To solve this issue directly at the Xserver level, this add new entries
to the XFixes extension to let the X11 clients themselves specify the
disconnect mode they expect.

Typically, those X11 daemon clients would specify the disconnect mode
XFixesClientDisconnectFlagTerminate to let the Xserver know that they
should not be accounted for when checking the remaining clients prior
to terminate.

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2021-06-07 17:28:05 +02:00
..
.gitignore Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
busfault.h
callback.h
client.h
closestr.h
closure.h
colormap.h
colormapst.h
cursor.h
cursorstr.h
dbus-core.h
displaymode.h
dix-config-apple-verbatim.h
dix-config.h.in xquartz: Remove check for libdispatch now that we don't support pre-SnowLeopard 2021-02-01 16:21:39 -08:00
dix.h Implement gesture processing logic 2021-05-30 13:26:42 +03:00
dixaccess.h
dixevents.h
dixfont.h include: Stop including <X11/fonts/fontproto.h> 2018-10-25 12:32:48 -04:00
dixfontstr.h
dixgrabs.h xi: Implement grab support for new gesture event types 2021-05-30 13:26:32 +03:00
dixstruct.h os: Define {ReadFdFrom,WriteFdTo}Client unconditionally 2018-03-08 14:12:36 -05:00
eventconvert.h dix: Add new internal event enums for gesture events 2021-05-30 13:26:30 +03:00
events.h xi: Implement internal gesture event struct 2021-05-30 13:26:31 +03:00
eventstr.h xi: Implement internal gesture event struct 2021-05-30 13:26:31 +03:00
exevents.h xi: Implement grab support for new gesture event types 2021-05-30 13:26:32 +03:00
extension.h
extinit.h miinitext: Load GLX on the mi path 2018-02-14 17:04:48 -05:00
extnsionst.h
fourcc.h Consolidate fourcc.h 2020-09-15 11:43:16 +02:00
gc.h
gcstruct.h
globals.h
glx_extinit.h miinitext: Load GLX on the mi path 2018-02-14 17:04:48 -05:00
glxvndabi.h Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
hotplug.h
input.h Implement gesture processing logic 2021-05-30 13:26:42 +03:00
inputstr.h dix: Implement internal gesture state handling 2021-05-30 13:26:39 +03:00
inpututils.h Implement gesture processing logic 2021-05-30 13:26:42 +03:00
list.h Correct xorg_list_is_empty return value description 2018-02-12 08:09:53 +10:00
Makefile.am Consolidate fourcc.h 2020-09-15 11:43:16 +02:00
meson.build meson: switch getpeer* checks to autotools style 2021-04-09 16:44:27 +00:00
misc.h include: Increase the number of max. input devices to 256. 2019-11-09 23:05:13 -05:00
miscstruct.h
nonsdk_extinit.h
opaque.h dix: Remove -to option to set the default connection timeout 2019-10-30 16:17:04 +00:00
optionstr.h
os.h os: Ensure sigset_t is provided when compiling for MinGW 2019-05-18 14:59:38 +00:00
pixmap.h xserver/output: rename some badly named variables/APIs. 2020-07-10 06:17:44 +10:00
pixmapstr.h xserver/output: rename some badly named variables/APIs. 2020-07-10 06:17:44 +10:00
privates.h
probes.h dtrace: s/#if/#ifdef/ for XSERVER_DTRACE 2019-08-27 17:38:59 -04:00
property.h
propertyst.h
protocol-versions.h xfixes: Add ClientDisconnectMode 2021-06-07 17:28:05 +02:00
ptrveloc.h
region.h
regionstr.h
registry.h
resource.h dix: Fix undefined shift in HashResourceID 2019-10-15 14:06:21 -04:00
rgb.h
screenint.h dix: De-ugly the prototype for Add{GPU,}Screen 2018-10-30 12:21:41 -04:00
scrnintstr.h xserver/output: rename some badly named variables/APIs. 2020-07-10 06:17:44 +10:00
selection.h
servermd.h
swaprep.h
swapreq.h
systemd-logind.h
validate.h
version-config.h.in
vidmodestr.h
window.h
windowstr.h dix: Remove WindowRec::backStorage 2019-04-12 21:53:03 +00:00
XIstubs.h
xkb-config.h.in
xkbfile.h
xkbrules.h
xkbsrv.h
xkbstr.h Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
xorg-config.h.in xorg: Remove the XF86PM define. 2018-08-02 10:27:37 -04:00
xorg-config.h.meson.in xorg: Remove the XF86PM define. 2018-08-02 10:27:37 -04:00
xorg-server.h.in xorg: Remove unused definitions from xorg-server.h.in 2018-03-28 09:54:17 -04:00
xorg-server.h.meson.in meson: Generate xorg-server.h 2018-03-28 09:54:22 -04:00
Xprintf.h
xserver-properties.h
Xserver.d dtrace: Move Xserver.d from dix/ to include/ 2019-08-27 17:38:54 -04:00
xserver_poll.h Fix typo in error message 2019-01-10 18:40:20 +02:00
xsha1.h
xwayland-config.h.in xwayland: Add glamor egl_backend for EGLStreams 2018-04-24 16:51:18 -04:00
xwayland-config.h.meson.in xwayland: Add glamor egl_backend for EGLStreams 2018-04-24 16:51:18 -04:00
xwin-config.h.in
xwin-config.h.meson.in