From 174de91c343dfbdfe866e566393bf4790ae22596 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 25 Oct 2003 19:27:09 +0000 Subject: use g_[s]list_next/previous consistantly, and check for "it" instead of "it != NULL" consistantly. props to Logan again :) --- openbox/stacking.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'openbox/stacking.c') diff --git a/openbox/stacking.c b/openbox/stacking.c index 279ea2e8..c715eae0 100644 --- a/openbox/stacking.c +++ b/openbox/stacking.c @@ -360,10 +360,11 @@ void stacking_add_nonintrusive(ObWindow *win) GList *it; if (client->group) - for (it = stacking_list; !parent && it; it = it->next) { + for (it = stacking_list; !parent && it; it = g_list_next(it)) { if ((sit = g_slist_find(client->group->members, it->data))) for (sit = client->group->members; !parent && sit; - sit = sit->next) { + sit = g_slist_next(sit)) + { ObClient *c = sit->data; /* checking transient_for prevents infinate loops! */ if (sit->data == it->data && !c->transient_for) -- cgit v1.2.3