From 9c8824542e8402a38f6746a1fe99a38dcdca5ae9 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sat, 13 Oct 2001 04:42:28 +0000 Subject: [PATCH] set last window before setting newp, so we don't get the current window as 2001-10-13 Havoc Pennington * src/stack.c (meta_stack_sync_to_server): set last window before setting newp, so we don't get the current window as the last window and screw everything up (IN_TAB_CHAIN): use type not layer to decide if a window is in the tab chain, keeps panel out of alt-tab choices --- ChangeLog | 8 ++++++++ src/stack.c | 9 +++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index c4f287146..61e2f2fa5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2001-10-13 Havoc Pennington + + * src/stack.c (meta_stack_sync_to_server): set last window before + setting newp, so we don't get the current window as the last + window and screw everything up + (IN_TAB_CHAIN): use type not layer to decide if a window is + in the tab chain, keeps panel out of alt-tab choices + 2001-10-13 Havoc Pennington * configure.in: add bad hack to work with GTK 1.3.9.90 RPMs from diff --git a/src/stack.c b/src/stack.c index aeb03ff4f..23a57e565 100644 --- a/src/stack.c +++ b/src/stack.c @@ -680,6 +680,7 @@ meta_stack_sync_to_server (MetaStack *stack) /* Stacks are the same here, move on */ ++oldp; ++newp; + last_window = *newp; } else if (meta_display_lookup_x_window (stack->screen->display, *oldp) == NULL) @@ -688,6 +689,7 @@ meta_stack_sync_to_server (MetaStack *stack) * so we can just skip it */ ++oldp; + last_window = *newp; } else { @@ -719,11 +721,10 @@ meta_stack_sync_to_server (MetaStack *stack) CWSibling | CWStackMode, &changes); } - + + last_window = *newp; ++newp; } - - last_window = *newp; } if (newp != new_end) @@ -868,7 +869,7 @@ meta_stack_get_below (MetaStack *stack, return find_prev_below_layer (stack, window->layer); } -#define IN_TAB_CHAIN(w) ((w)->layer != META_LAYER_DOCK && (w)->layer != META_LAYER_DESKTOP) +#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)))