mutter/src
Olivier Fourdan 6ed36cd6e3 wayland: No xdg-output events without a logical monitor
To avoid a known race condition in the wl_output protocol documented in
https://phabricator.freedesktop.org/T7722, mutter delays the `wl_output`
destruction but nullify the `logical_monitor` associated with the
`wl_output` and the binding routine `bind_output()` makes sure not to
send wl_output events if the `logical_monitor` is `NULL` (see commit
1923db97).

The binding routine for `xdg_output` however does not check for such a
condition, hence if the output configuration changes while a client is
binding to xdg-output (typically Xwayland at startup), mutter would
crash while trying to access the `logical_monitor` which was nullified
by the change in configuration.

Just like `bind_output()` does for wl_output, do not send xdg-output
events if there is no `logical_monitor` yet.

Closes: https://gitlab.gnome.org/GNOME/mutter/issues/194

(cherry picked from commit 68ec9ac017)
2018-09-27 11:05:35 +02:00
..
backends idle-monitor: Don't try to auto-start SessionManager 2018-08-31 15:42:23 +00:00
compositor compositor: Skip windows not visible to the compositor 2018-09-24 15:06:25 +02:00
core core: Preserve focus across decoration changes 2018-09-24 16:15:11 +02:00
meta build: Introspect some more types 2018-05-07 22:06:02 +02:00
tests tests: Add "closed-transient" test 2018-07-30 20:29:03 +02:00
ui frames: Allow for unknown mouse buttons 2018-05-25 11:35:45 +02:00
wayland wayland: No xdg-output events without a logical monitor 2018-09-27 11:05:35 +02:00
x11 core: Preserve focus across decoration changes 2018-09-24 16:15:11 +02:00
.cvsignore
libmutter.pc.in Make libmutter and friends parallel installable 2017-02-14 11:16:45 +08:00
Makefile-tests.am tests: Add "closed-transient" test 2018-07-30 20:29:03 +02:00
Makefile.am build: Adjust to filename changes 2018-05-07 22:29:42 +02:00
meta-enum-types.c.in Install enum types 2015-07-05 22:01:59 -07:00
meta-enum-types.h.in Install enum types 2015-07-05 22:01:59 -07:00
org.freedesktop.login1.xml MetaLauncher: Don't g_error() on failure 2015-11-06 17:03:59 -05:00
org.gnome.Mutter.DisplayConfig.xml DisplayConfig: Add 'legacy-ui-scaling-factor' property 2017-10-12 17:42:52 +08:00
org.gnome.Mutter.IdleMonitor.xml idle-monitor: Add ResetIdletime API, for testing purposes 2018-04-16 16:03:56 +02:00
org.gnome.Mutter.RemoteDesktop.xml remote-desktop, screen-cast: Add version number to D-Bus APIs 2018-02-23 19:33:31 +08:00
org.gnome.Mutter.ScreenCast.xml remote-desktop, screen-cast: Add version number to D-Bus APIs 2018-02-23 19:33:31 +08:00