summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2020-03-06 18:14:12 +0200
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2020-03-06 18:53:20 +0200
commitb4cc21037eb9979f343ef85b80633c20a066c970 (patch)
tree4b40b3659510dfd0dbfee7895a3ef003500106ee
parent593034cd737961ad05e7b125ad031e43d2bfe53d (diff)
downloadmetacity-b4cc21037eb9979f343ef85b80633c20a066c970.tar.gz
revert "window: stop updating layers on focus changes"
This reverts commit 12c4f35ca5a6f596518d50b2b2c647608c3d3410. https://gitlab.gnome.org/GNOME/metacity/issues/8
-rw-r--r--src/core/window.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/window.c b/src/core/window.c
index ab86382b..2d4e0ec7 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -5979,6 +5979,9 @@ meta_window_set_focused_internal (MetaWindow *window,
XInstallColormap (window->display->xdisplay, window->colormap);
meta_error_trap_pop (window->display);
+ /* move into FOCUSED_WINDOW layer */
+ meta_window_update_layer (window);
+
/* Ungrab click to focus button since the sync grab can interfere
* with some things you might do inside the focused window, by
* causing the client to get funky enter/leave events.
@@ -6016,6 +6019,9 @@ meta_window_set_focused_internal (MetaWindow *window,
XUninstallColormap (window->display->xdisplay, window->colormap);
meta_error_trap_pop (window->display);
+ /* move out of FOCUSED_WINDOW layer */
+ meta_window_update_layer (window);
+
/* Re-grab for click to focus and raise-on-click, if necessary */
if (meta_prefs_get_focus_mode () == G_DESKTOP_FOCUS_MODE_CLICK ||
!meta_prefs_get_raise_on_click ())