From: Dana Jansens Date: Mon, 12 Mar 2007 03:09:09 +0000 (+0000) Subject: another silly bug. i rule the school. X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=310ea89e0ebb53e27550440960305ffc446ae8ce;p=chaz%2Fopenbox another silly bug. i rule the school. --- diff --git a/openbox/stacking.c b/openbox/stacking.c index 2050219d..cb8eaf31 100644 --- a/openbox/stacking.c +++ b/openbox/stacking.c @@ -197,7 +197,9 @@ static void restack_windows(ObClient *selected, gboolean raise) stacking_list = g_list_delete_link(stacking_list, it); /* go from the bottom of the stacking list up */ - for (it = g_list_last(stacking_list); it; it = g_list_previous(it)) { + for (it = g_list_last(stacking_list); it; it = next) { + next = g_list_previous(it); + if (WINDOW_IS_CLIENT(it->data)) { ObClient *ch = it->data;