]> Dogcows Code - chaz/openbox/blobdiff - openbox/stacking.c
add a makefile so i can put stuff into the make dist
[chaz/openbox] / openbox / stacking.c
index e31974f771bea2af4153f10fea894d8ef35426fb..2fa4b2e6d9dc8c83d15c2641193da527ccf9c6fa 100644 (file)
@@ -245,7 +245,7 @@ void stacking_lower(ObWindow *window)
 
     window = top_transient(window);
     wins = pick_windows(window);
-    wins = g_list_concat(wins, pick_group_windows(window));
+    wins = g_list_concat(pick_group_windows(window), wins);
     lower(wins);
     g_list_free(wins);
 }
@@ -258,12 +258,7 @@ void stacking_add(ObWindow *win)
     l = window_layer(win);
     wins = g_list_append(NULL, win); /* list of 1 element */
 
-    for (it = stacking_list; it; it = g_list_next(it))
-        if (window_layer(it->data) <= l)
-            break;
-    do_restack(wins, it);
-    g_list_free(wins);
-
+    stacking_list = g_list_append(stacking_list, win);
     stacking_raise(win);
 }
 
This page took 0.023316 seconds and 4 git commands to generate.