From 5ee0f24ab90d457f3b53a32e96f89db816a98f0a Mon Sep 17 00:00:00 2001 From: Rui Matos Date: Wed, 6 Jul 2016 18:49:46 +0200 Subject: [PATCH] window: Stop updating layers on focus changes Commit 3a4ae679ea398dba437b9750910b17891894899e 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 cdd63601b..416762855 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -4782,9 +4782,6 @@ meta_window_set_focused_internal (MetaWindow *window, if (window->frame) meta_frame_queue_draw (window->frame); - /* 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. @@ -4820,9 +4817,6 @@ meta_window_set_focused_internal (MetaWindow *window, if (!window->attached_focus_window) meta_window_appears_focused_changed (window); - /* 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 ())