make stacking_add_nonintrusive work when there is only 1 other window
Dana Jansens danakj@orodu.net
1 files changed,
4 insertions(+),
2 deletions(-)
jump to
M
openbox/stacking.c
→
openbox/stacking.c
@@ -408,8 +408,10 @@ it_below = it_below->next;
} } if (!it_below) { - /* out of ideas, just add it normally... */ - stacking_add(win); + /* there is no window to put this directly above, so put it at the + bottom */ + stacking_list = g_list_prepend(stacking_list, win); + stacking_lower(win); } else { /* make sure it's not in the wrong layer though ! */ for (; it_below; it_below = g_list_next(it_below))