From 12c4f35ca5a6f596518d50b2b2c647608c3d3410 Mon Sep 17 00:00:00 2001 From: Rui Matos Date: Wed, 6 Jul 2016 18:49:46 +0200 Subject: window: stop updating layers on focus changes Commit 3c67fd1f8f634b235d3c2a53367f66542031e63f removed the FOCUSED_WINDOW layer definition but it was already unused for a long time. There's no layers to update on focus changes. https://bugzilla.gnome.org/show_bug.cgi?id=768221 --- src/core/window.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/core/window.c b/src/core/window.c index bab13c2d..839dc618 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -5921,9 +5921,6 @@ 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. @@ -5961,9 +5958,6 @@ 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 ()) -- cgit v1.2.1