diff options
author | Havoc Pennington <hp@pobox.com> | 2001-10-23 00:55:29 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2001-10-23 00:55:29 +0000 |
commit | 7069fc9b501ebdde52839bd00b4521156316d639 (patch) | |
tree | 08917fea5a9c20e7f148fa6065b2aa442149e7ca /src | |
parent | 01a5b5762d0147a40484050bc970cd73b4e9b010 (diff) | |
download | metacity-7069fc9b501ebdde52839bd00b4521156316d639.tar.gz metacity-7069fc9b501ebdde52839bd00b4521156316d639.tar.bz2 |
fix to keep desktop window from appearing on top of everything else, among
2001-10-22 Havoc Pennington <hp@pobox.com>
* src/stack.c (meta_stack_sync_to_server): fix to keep desktop
window from appearing on top of everything else, among other stack
bugs. Untested.
Diffstat (limited to 'src')
-rw-r--r-- | src/stack.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stack.c b/src/stack.c index ef860be..6905e5c 100644 --- a/src/stack.c +++ b/src/stack.c @@ -728,6 +728,12 @@ meta_stack_sync_to_server (MetaStack *stack) /* Restack remaining windows */ meta_verbose ("Restacking remaining %d windows\n", (int) (new_end - newp)); + /* We need to include an already-stacked window + * in the restack call, so we get in the proper position + * with respect to it. + */ + if (newp != new_stack) + --newp; XRestackWindows (stack->screen->display->xdisplay, (Window *) newp, new_end - newp); } |