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
This commit is contained in:
parent
e8bc8e95e2
commit
9c8824542e
@ -1,3 +1,11 @@
|
||||
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
|
||||
|
||||
2001-10-13 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* configure.in: add bad hack to work with GTK 1.3.9.90 RPMs from
|
||||
|
@ -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)))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user