mutter/src
Carlos Garnacho 71c3f4af31 x11: Update X11 focus before updating MetaDisplay focus
In a similar vein to commit 8fd55fef85. This notably failed when setting
the focus on the stage (eg. to redirect key events to Clutter actors).
Deeper in MetaDisplay focus updating machinery, it would check
meta_stage_is_focused() which would still return FALSE at the time it's
called.

This would not typically have side effects, but our "App does not respond"
dialogs see the focus change under their feet, so they try to bring
themselves to focus again. This results in a feedback loop.

Changing the order results in later checks on the X11 POV of the focus
being correct, so focus is not mistakenly stolen from the close dialog,
and it actually succeeds in keeping the key focus.

Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/issues/1607

https://gitlab.gnome.org/GNOME/mutter/merge_requests/876
2019-10-22 14:51:36 +02:00
..
backends backends: Plug MetaKmsPageFlipData leak 2019-10-21 19:01:35 +02:00
compositor compositor: Plug cairo_region_t leak 2019-10-21 19:01:37 +02:00
core Replace ClutterRect by graphene_rect_t 2019-10-16 11:38:14 +00:00
meta meta: Move private defines to a private header 2019-10-15 11:03:56 +00:00
tests cogl: Remove unused CoglFeatureFlags 2019-10-21 21:43:08 +00:00
ui meta: Move private defines to a private header 2019-10-15 11:03:56 +00:00
wayland wayland/surface: Reset buffer_destroy_handler_id 2019-10-21 12:54:36 +00:00
x11 x11: Update X11 focus before updating MetaDisplay focus 2019-10-22 14:51:36 +02:00
libmutter.pc.in
meson.build core/core: Rename and move to x11/meta-x11-window-control 2019-10-15 07:17:29 +00:00
meta-marshal.list
org.freedesktop.login1.xml
org.gnome.Mutter.DisplayConfig.xml
org.gnome.Mutter.IdleMonitor.xml
org.gnome.Mutter.RemoteDesktop.xml
org.gnome.Mutter.ScreenCast.xml