From 7e61ef09369a6564ad51d9d654db0e3d104fe0fc Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Sun, 17 Feb 2013 15:27:21 -0500 Subject: [PATCH] display: Don't put minimized windows at the back of alt-tab Minimizing a window should not change its position in the alt-tab list. https://bugzilla.gnome.org/show_bug.cgi?id=693991 --- src/core/display.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/core/display.c b/src/core/display.c index a7a5b46c8..2e522a9e9 100644 --- a/src/core/display.c +++ b/src/core/display.c @@ -4895,25 +4895,13 @@ meta_display_get_tab_list (MetaDisplay *display, mru_list = workspace ? workspace->mru_list : global_mru_list; - /* Windows sellout mode - MRU order. Collect unminimized windows - * then minimized so minimized windows aren't in the way so much. + /* Windows sellout mode - MRU order. */ for (tmp = mru_list; tmp; tmp = tmp->next) { MetaWindow *window = tmp->data; - if (!window->minimized && - window->screen == screen && - IN_TAB_CHAIN (window, type)) - tab_list = g_list_prepend (tab_list, window); - } - - for (tmp = mru_list; tmp; tmp = tmp->next) - { - MetaWindow *window = tmp->data; - - if (window->minimized && - window->screen == screen && + if (window->screen == screen && IN_TAB_CHAIN (window, type)) tab_list = g_list_prepend (tab_list, window); }