From 2fa7129ca3cdab0ccc7a575a70dad825d06d9521 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 29 Jun 2003 04:00:43 +0000 Subject: [PATCH] waste of energy in stacking_add, and it even caused bugs. woops. --- openbox/stacking.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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); } -- 2.45.2