diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2020-03-06 18:14:12 +0200 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2020-03-06 19:03:38 +0200 |
commit | 1b231de43d0da82017b1b6e9b4782c6c575f2c53 (patch) | |
tree | c13ed78830fa64fe9c6773f119703a130386392a | |
parent | ae883e9678236780e43f5b6846aac3c593c43b49 (diff) | |
download | metacity-gnome-3-34.tar.gz |
revert "window: stop updating layers on focus changes"gnome-3-34
This reverts commit 12c4f35ca5a6f596518d50b2b2c647608c3d3410.
https://gitlab.gnome.org/GNOME/metacity/issues/8
-rw-r--r-- | src/core/window.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/window.c b/src/core/window.c index cb631115..7d1f2fce 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -5990,6 +5990,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. @@ -6027,6 +6030,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 ()) |