]> Dogcows Code - chaz/openbox/commitdiff
waste of energy in stacking_add, and it even caused bugs. woops.
authorDana Jansens <danakj@orodu.net>
Sun, 29 Jun 2003 04:00:43 +0000 (04:00 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 29 Jun 2003 04:00:43 +0000 (04:00 +0000)
openbox/stacking.c

index f8e66dd9526e38f065f7f3ec7b2d32be6a0fb3d1..2fa4b2e6d9dc8c83d15c2641193da527ccf9c6fa 100644 (file)
@@ -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.022803 seconds and 4 git commands to generate.