From 492a1b244f712137589af6af26ed22e52c821936 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 1 Oct 2014 17:28:45 -0600 Subject: [PATCH] Revert "display: Don't put minimized windows at the back of alt-tab" This reverts commit 7e61ef09369a6564ad51d9d654db0e3d104fe0fc. https://bugzilla.gnome.org/show_bug.cgi?id=705177 --- src/core/display.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/core/display.c b/src/core/display.c index 57423eef6..14bcebe2e 100644 --- a/src/core/display.c +++ b/src/core/display.c @@ -2440,13 +2440,22 @@ meta_display_get_tab_list (MetaDisplay *display, mru_list = workspace ? workspace->mru_list : global_mru_list; - /* Windows sellout mode - MRU order. + /* Windows sellout mode - MRU order. Collect unminimized windows + * then minimized so minimized windows aren't in the way so much. */ for (tmp = mru_list; tmp; tmp = tmp->next) { MetaWindow *window = tmp->data; - if (IN_TAB_CHAIN (window, type)) + if (!window->minimized && 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 && IN_TAB_CHAIN (window, type)) tab_list = g_list_prepend (tab_list, window); }