]> Dogcows Code - chaz/openbox/commitdiff
make stacking_add_nonintrusive work when there is only 1 other window
authorDana Jansens <danakj@orodu.net>
Wed, 18 Apr 2007 19:19:45 +0000 (19:19 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 18 Apr 2007 19:19:45 +0000 (19:19 +0000)
openbox/stacking.c

index cb8eaf31a996fd72c29dce49d01dd275be80d908..f3173c4d55e83cd35605f94421d4cfa4e3391432 100644 (file)
@@ -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))
This page took 0.027299 seconds and 4 git commands to generate.