make stacking_add_nonintrusive work when there is only 1 other window
This commit is contained in:
parent
7f11e15bb8
commit
34196a1ef3
1 changed files with 4 additions and 2 deletions
|
@ -408,8 +408,10 @@ void stacking_add_nonintrusive(ObWindow *win)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!it_below) {
|
if (!it_below) {
|
||||||
/* out of ideas, just add it normally... */
|
/* there is no window to put this directly above, so put it at the
|
||||||
stacking_add(win);
|
bottom */
|
||||||
|
stacking_list = g_list_prepend(stacking_list, win);
|
||||||
|
stacking_lower(win);
|
||||||
} else {
|
} else {
|
||||||
/* make sure it's not in the wrong layer though ! */
|
/* make sure it's not in the wrong layer though ! */
|
||||||
for (; it_below; it_below = g_list_next(it_below))
|
for (; it_below; it_below = g_list_next(it_below))
|
||||||
|
|
Loading…
Reference in a new issue