summaryrefslogtreecommitdiff
path: root/src/stack.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-03-12 04:34:17 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-03-12 04:34:17 +0000
commit11089cb8245b3cd47bcc5bb11b730a6e80cc62cd (patch)
tree2de153b156d745b71fcb99bdf2544e1059e5ee00 /src/stack.c
parent35a2f2df767865d03fe10d0d16fd8f3e50ed503f (diff)
downloadmetacity-11089cb8245b3cd47bcc5bb11b730a6e80cc62cd.tar.gz
metacity-11089cb8245b3cd47bcc5bb11b730a6e80cc62cd.tar.bz2
use new functions
2002-03-11 Havoc Pennington <hp@pobox.com> * src/keybindings.c: use new functions * src/display.c (meta_display_get_tab_next): (meta_display_get_tab_list): new tab order functions using MRU list instead of map order * src/window.c (meta_window_notify_focus): maintain focus MRU list * src/display.h (struct _MetaDisplay): Keep an MRU list of windows.
Diffstat (limited to 'src/stack.c')
-rw-r--r--src/stack.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/stack.c b/src/stack.c
index 37b4489..cebe648 100644
--- a/src/stack.c
+++ b/src/stack.c
@@ -929,8 +929,6 @@ meta_stack_get_default_focus_window (MetaStack *stack,
return topmost_dock;
}
-
-#define IN_TAB_CHAIN(w) ((w)->type != META_WINDOW_DOCK && (w)->type != META_WINDOW_DESKTOP)
#define GET_XWINDOW(stack, i) (g_array_index ((stack)->windows, \
Window, (i)))
@@ -951,7 +949,7 @@ find_tab_forward (MetaStack *stack,
window = meta_display_lookup_x_window (stack->screen->display,
GET_XWINDOW (stack, i));
- if (window && IN_TAB_CHAIN (window) &&
+ if (window && META_WINDOW_IN_TAB_CHAIN (window) &&
(workspace == NULL ||
meta_window_visible_on_workspace (window, workspace)))
return window;
@@ -967,7 +965,7 @@ find_tab_forward (MetaStack *stack,
window = meta_display_lookup_x_window (stack->screen->display,
GET_XWINDOW (stack, i));
- if (window && IN_TAB_CHAIN (window) &&
+ if (window && META_WINDOW_IN_TAB_CHAIN (window) &&
(workspace == NULL ||
meta_window_visible_on_workspace (window, workspace)))
return window;
@@ -996,7 +994,7 @@ find_tab_backward (MetaStack *stack,
window = meta_display_lookup_x_window (stack->screen->display,
GET_XWINDOW (stack, i));
- if (window && IN_TAB_CHAIN (window) &&
+ if (window && META_WINDOW_IN_TAB_CHAIN (window) &&
(workspace == NULL ||
meta_window_visible_on_workspace (window, workspace)))
return window;
@@ -1012,7 +1010,7 @@ find_tab_backward (MetaStack *stack,
window = meta_display_lookup_x_window (stack->screen->display,
GET_XWINDOW (stack, i));
- if (window && IN_TAB_CHAIN (window) &&
+ if (window && META_WINDOW_IN_TAB_CHAIN (window) &&
(workspace == NULL ||
meta_window_visible_on_workspace (window, workspace)))
return window;
@@ -1094,7 +1092,7 @@ meta_stack_get_tab_list (MetaStack *stack,
window = meta_display_lookup_x_window (stack->screen->display,
GET_XWINDOW (stack, i));
- if (window && IN_TAB_CHAIN (window) &&
+ if (window && META_WINDOW_IN_TAB_CHAIN (window) &&
(workspace == NULL ||
meta_window_visible_on_workspace (window, workspace)))
list = g_slist_prepend (list, window);