From: Dana Jansens Date: Sun, 29 Jun 2003 04:00:43 +0000 (+0000) Subject: waste of energy in stacking_add, and it even caused bugs. woops. X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=2fa7129ca3cdab0ccc7a575a70dad825d06d9521;p=chaz%2Fopenbox waste of energy in stacking_add, and it even caused bugs. woops. --- diff --git a/openbox/stacking.c b/openbox/stacking.c index f8e66dd9..2fa4b2e6 100644 --- a/openbox/stacking.c +++ b/openbox/stacking.c @@ -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); }