]> Dogcows Code - chaz/openbox/blobdiff - openbox/stacking.c
use g_[s]list_next/previous consistantly, and check for "it" instead of "it != NULL...
[chaz/openbox] / openbox / stacking.c
index 279ea2e8713b9307d30318f2f56dd993f53c8b68..c715eae04d9ec40f0815a1a1389a190c14098ecf 100644 (file)
@@ -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)
This page took 0.022414 seconds and 4 git commands to generate.