summaryrefslogtreecommitdiff
path: root/src/stack.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2001-10-13 04:42:28 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-10-13 04:42:28 +0000
commit9c8824542e8402a38f6746a1fe99a38dcdca5ae9 (patch)
tree0a6479e9d6136276917d3f8d2d9d76ae2a68ad9c /src/stack.c
parente8bc8e95e225df3265829f897ad2df92d2f3cd0a (diff)
downloadmetacity-9c8824542e8402a38f6746a1fe99a38dcdca5ae9.tar.gz
metacity-9c8824542e8402a38f6746a1fe99a38dcdca5ae9.tar.bz2
set last window before setting newp, so we don't get the current window as
2001-10-13 Havoc Pennington <hp@pobox.com> * 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
Diffstat (limited to 'src/stack.c')
-rw-r--r--src/stack.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/stack.c b/src/stack.c
index aeb03ff..23a57e5 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)))