diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-04-18 19:19:45 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-04-18 19:19:45 +0000 |
| commit | 34196a1ef3fc92bf7f0ed663acedc8f9cffa5958 (patch) | |
| tree | 9cd74465d002daf653323004bb1d2e7d1caabdf6 /openbox | |
| parent | 7f11e15bb8bdb4e6fc6cd012b0ff3c92900a7b70 (diff) | |
make stacking_add_nonintrusive work when there is only 1 other window
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/stacking.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/openbox/stacking.c b/openbox/stacking.c index cb8eaf31..f3173c4d 100644 --- a/openbox/stacking.c +++ b/openbox/stacking.c @@ -408,8 +408,10 @@ void stacking_add_nonintrusive(ObWindow *win) } } 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)) |
