diff options
author | Danny Baumann <dannybaumann@web.de> | 2008-02-12 18:06:33 +0100 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2008-02-12 18:06:33 +0100 |
commit | 8386878e30824cceb076c306c63bc0a6b22e0ca2 (patch) | |
tree | 8fc6e1f1f0f59de803207a7982e381db767f9ff8 /shelf.c | |
parent | 71e10fed72e6b4104741f9d0062c571c41970f33 (diff) | |
download | shelf-8386878e30824cceb076c306c63bc0a6b22e0ca2.tar.gz shelf-8386878e30824cceb076c306c63bc0a6b22e0ca2.tar.bz2 |
Force IPW to be stacked under its main window.
We don't need to check for the frame window, as the cost of core stacking the frame between main window and IPW is only one restack. We gain much cleaner code for that.
Diffstat (limited to 'shelf.c')
-rw-r--r-- | shelf.c | 21 |
1 files changed, 1 insertions, 20 deletions
@@ -336,26 +336,7 @@ shelfAdjustIPWStacking (CompScreen *s) for (run = ss->shelfedWindows; run; run = run->next) { - Bool stackingRight = FALSE; - - if (run->w->prev) - { - /* the stacking is correct if either - a) the window under the main window is the IPW or - b) the second window under the main window is the IPW, - if the first one is the frame - */ - if (run->w->prev->id == run->ipw) - stackingRight = TRUE; - else if (run->w->prev->id == run->w->frame) - { - if (run->w->prev->prev) - if (run->w->prev->prev->id == run->ipw) - stackingRight = TRUE; - } - } - - if (!stackingRight) + if (!run->w->prev || run->w->prev->id != run->ipw) shelfAdjustIPW (run->w); } } |