X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fstacking.c;h=cb8eaf31a996fd72c29dce49d01dd275be80d908;hb=c4732aeed20bc04a1e396a49003c85faccfb4cad;hp=2050219db83de16556bcfc21de36036b3802ad31;hpb=9ca05545076ffc4c5165ce12de47173b044b57e0;p=chaz%2Fopenbox 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;