]> Dogcows Code - chaz/openbox/blobdiff - openbox/resist.c
use g_[s]list_next/previous consistantly, and check for "it" instead of "it != NULL...
[chaz/openbox] / openbox / resist.c
index f34877a08d0a7e1ee705b0d47c3f683e8f22f71b..c88f594849ff63be7078ba1409df42719c6dff20 100644 (file)
@@ -47,7 +47,7 @@ void resist_move_windows(ObClient *c, gint *x, gint *y)
     cb = RECT_BOTTOM(c->frame->area);
     
     if (config_resist_win)
-        for (it = stacking_list; it != NULL; it = it->next) {
+        for (it = stacking_list; it; it = g_list_next(it)) {
             ObClient *target;
             gint tl, tt, tr, tb; /* 1 past the target's edges on each side */
 
@@ -187,7 +187,7 @@ void resist_size_windows(ObClient *c, gint *w, gint *h, ObCorner corn)
     b = RECT_BOTTOM(c->frame->area);
 
     if (config_resist_win) {
-        for (it = stacking_list; it != NULL; it = it->next) {
+        for (it = stacking_list; it; it = g_list_next(it)) {
             if (!WINDOW_IS_CLIENT(it->data))
                 continue;
             target = it->data;
This page took 0.026482 seconds and 4 git commands to generate.