From 8fb361cb26bb1bea9d9f65c2856309ec95715791 Mon Sep 17 00:00:00 2001 From: Stefano Facchini Date: Mon, 12 Mar 2012 23:00:12 +0100 Subject: [PATCH] Add META_TAB_LIST_NORMAL_ALL to MetaTabList enum This is a new value, not associated with any keybindings, useful when the WM needs to order the applications by last-interaction, taking into account all windows. https://bugzilla.gnome.org/show_bug.cgi?id=667552 --- src/core/display.c | 3 ++- src/core/keybindings.c | 4 ++++ src/meta/display.h | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/core/display.c b/src/core/display.c index 5a5b8ad56..ac1cab997 100644 --- a/src/core/display.c +++ b/src/core/display.c @@ -4505,7 +4505,8 @@ get_focussed_group (MetaDisplay *display) #define IN_TAB_CHAIN(w,t) (((t) == META_TAB_LIST_NORMAL && META_WINDOW_IN_NORMAL_TAB_CHAIN (w)) \ || ((t) == META_TAB_LIST_DOCKS && META_WINDOW_IN_DOCK_TAB_CHAIN (w)) \ - || ((t) == META_TAB_LIST_GROUP && META_WINDOW_IN_GROUP_TAB_CHAIN (w, get_focussed_group(w->display)))) + || ((t) == META_TAB_LIST_GROUP && META_WINDOW_IN_GROUP_TAB_CHAIN (w, get_focussed_group(w->display))) \ + || ((t) == META_TAB_LIST_NORMAL_ALL && META_WINDOW_IN_NORMAL_TAB_CHAIN_TYPE (w))) static MetaWindow* find_tab_forward (MetaDisplay *display, diff --git a/src/core/keybindings.c b/src/core/keybindings.c index bb974c2a1..6714e163b 100644 --- a/src/core/keybindings.c +++ b/src/core/keybindings.c @@ -3019,6 +3019,8 @@ tab_op_from_tab_type (MetaTabList type) return META_GRAB_OP_KEYBOARD_TABBING_DOCK; case META_TAB_LIST_GROUP: return META_GRAB_OP_KEYBOARD_TABBING_GROUP; + case META_TAB_LIST_NORMAL_ALL: + break; } g_assert_not_reached (); @@ -3037,6 +3039,8 @@ cycle_op_from_tab_type (MetaTabList type) return META_GRAB_OP_KEYBOARD_ESCAPING_DOCK; case META_TAB_LIST_GROUP: return META_GRAB_OP_KEYBOARD_ESCAPING_GROUP; + case META_TAB_LIST_NORMAL_ALL: + break; } g_assert_not_reached (); diff --git a/src/meta/display.h b/src/meta/display.h index d68984f32..f55ad9778 100644 --- a/src/meta/display.h +++ b/src/meta/display.h @@ -33,7 +33,8 @@ typedef enum { META_TAB_LIST_NORMAL, META_TAB_LIST_DOCKS, - META_TAB_LIST_GROUP + META_TAB_LIST_GROUP, + META_TAB_LIST_NORMAL_ALL } MetaTabList; typedef enum