mutter/src
Jonas Ådahl 01d93f2819 kms-impl-simple: Handle mode set race conditions gracefully
If we end up trying to do a mode set on a DRM state that has already
changed behind our back without us yet having seen the hotplug event we
may fail with `EINVAL`. Since the renderer layer doesn't handle mode set
failure, it'll still try to page flip later on, which will then also
fail. When failing, it'll try to look up the cached mode set in order to
retry the mode set later on, as is needed to handle other error
conditions. However, if the mode set prior to the page flip failed, we
won't cache the mode set, and the page flip error handling code will get
confused.

Instead of asserting that a page flip always has a valid cached mode set
ready to look up, handle it being missing more gracefully by failing to
mode set. It is expected that things will correct themself as there
should be a hotplug event waiting around the the corner, to reconfigure
the monitor configuration setting new modes.

Fixes: https://gitlab.gnome.org/GNOME/mutter/issues/917

https://gitlab.gnome.org/GNOME/mutter/merge_requests/1007
(cherry picked from commit ce3409b2b7)
2020-01-16 16:02:42 +01:00
..
backends kms-impl-simple: Handle mode set race conditions gracefully 2020-01-16 16:02:42 +01:00
compositor shaped-texture: Make setting the same texture a no-op 2020-01-16 08:54:31 +01:00
core stack: Allow promoting transient windows to their parent's layer 2019-11-29 14:18:59 +00:00
meta cursor-tracker: Add API to keep the wayland pointer focus while hidden 2019-11-25 16:15:14 +01:00
tests window-props: Don't set override redirect windows as top-level parent 2019-11-07 16:21:37 +00:00
ui cleanup: Don't use g_memmove() 2019-07-18 11:01:09 +02:00
wayland wayland/actor-surface: Always consider unmapped actors not on output 2020-01-16 08:54:31 +01:00
x11 window-props: Don't set override redirect windows as top-level parent 2019-11-07 16:21:37 +00:00
libmutter.pc.in build: Fix libs and cflags in autotools .pc file 2018-11-10 16:20:46 +00:00
meson.build build: Fix build when wayland is disabled 2019-10-03 08:52:44 +00:00
meta-marshal.list cursor-tracker: Use our own marshal for cursor-moved 2019-07-31 09:34:17 +00: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 fixed typo 2018-07-24 13:16:36 +00:00
org.gnome.Mutter.IdleMonitor.xml idle-monitor: Add ResetIdletime API, for testing purposes 2018-04-16 13:28:03 +02:00
org.gnome.Mutter.RemoteDesktop.xml Fix typo in RemoteDesktop dbus api 2019-05-22 16:21:57 +02:00
org.gnome.Mutter.ScreenCast.xml org.gnome.Mutter.ScreenCast: Document what was added in API version 2 2019-02-26 13:39:11 +00:00