waste of energy in stacking_add, and it even caused bugs. woops.

This commit is contained in:
Dana Jansens 2003-06-29 04:00:43 +00:00
parent 8de13a41b6
commit 2fa7129ca3

View 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);
}