mutter/src/x11
Carlos Garnacho ef2f5f07f0 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


(cherry picked from commit 71c3f4af31)
2019-10-24 15:52:41 +00:00
..
atomnames.h x11: Remove hide-titlebar-when-maximized support 2018-11-26 13:12:18 +00:00
events.c xprops: Use g_new0 instead of calloc in meta_prop_get_motif_hints() 2019-10-03 17:20:54 +00:00
events.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
group-private.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
group-props.c Clean up include macros mess 2018-11-06 17:17:36 +01:00
group-props.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
group.c Clean up include macros mess 2018-11-06 17:17:36 +01:00
iconcache.c iconcache: Avoid xrender picture formats when creating cairo surface 2019-08-27 18:47:41 +03:00
iconcache.h Move X11 event, icon cache and property handling to MetaX11Display 2018-07-06 19:47:16 +02:00
meta-selection-source-x11-private.h Make MetaSelection, MetaSelectionSource and MetaMemorySelectionSource public 2019-05-02 16:31:45 +02:00
meta-selection-source-x11.c x11: Map mimetypes back to selection atoms 2019-10-12 19:18:19 +02:00
meta-startup-notification-x11.c core: Fix differing sequence timestamp precision expectations 2019-04-17 18:41:13 +02:00
meta-startup-notification-x11.h x11: Add method to launch applications, using SnLauncher 2019-01-18 17:03:57 +00:00
meta-x11-display-private.h x11: Minor refactor of input focus handling code 2019-09-13 20:55:57 +00:00
meta-x11-display.c x11: Update X11 focus before updating MetaDisplay focus 2019-10-24 15:52:41 +00:00
meta-x11-errors.c Clean up include macros mess 2018-11-06 17:17:36 +01:00
meta-x11-selection-input-stream-private.h x11: Add X11 selection input/output streams 2019-05-02 15:40:13 +02:00
meta-x11-selection-input-stream.c x11: Add X11 selection input/output streams 2019-05-02 15:40:13 +02:00
meta-x11-selection-output-stream-private.h x11: Add X11 selection input/output streams 2019-05-02 15:40:13 +02:00
meta-x11-selection-output-stream.c x11: Add X11 selection input/output streams 2019-05-02 15:40:13 +02:00
meta-x11-selection-private.h Make MetaSelection, MetaSelectionSource and MetaMemorySelectionSource public 2019-05-02 16:31:45 +02:00
meta-x11-selection.c x11: Do not warn on cancelled X11 selection sources 2019-05-15 13:14:12 +00:00
meta-x11-stack-private.h x11: Add MetaX11Stack object 2019-05-24 15:30:31 +00:00
meta-x11-stack.c core: Move Stack to StackTracker synchronization back to stack.c 2019-08-26 17:39:10 +00:00
mutter-Xatomtype.h mutter-Xatomtype: Fix the sizes of these structs 2015-06-23 11:46:29 -07:00
session.c Clean up include macros mess 2018-11-06 17:17:36 +01:00
session.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
window-props.c window-x11: Fix _XOPEN_SOURCE usage for gethostname on FreeBSD 2019-06-24 09:35:02 +00:00
window-props.h Clean up include macros mess 2018-11-06 17:17:36 +01:00
window-x11-private.h window: Move can_ping to a function and implement in X11 2019-02-13 02:07:41 +00:00
window-x11.c window-x11: Refactor meta_prop_get_latin1_string() calls 2019-10-03 17:20:54 +00:00
window-x11.h window: Move can_ping to a function and implement in X11 2019-02-13 02:07:41 +00:00
xprops.c xprops: Use g_new0 instead of malloc in size_hints_from_results() 2019-10-03 17:20:54 +00:00
xprops.h Clean up include macros mess 2018-11-06 17:17:36 +01:00