summaryrefslogtreecommitdiff
path: root/openbox/resist.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-10-25 19:27:09 +0000
committerDana Jansens <danakj@orodu.net>2003-10-25 19:27:09 +0000
commit174de91c343dfbdfe866e566393bf4790ae22596 (patch)
tree6cfbe9eebbad2f8b4fe6ac8db10512eac76767f4 /openbox/resist.c
parent4cb183401cc42f61a759b02f1210a3528f7869e5 (diff)
use g_[s]list_next/previous consistantly, and check for "it" instead of "it != NULL" consistantly. props to Logan again :)
Diffstat (limited to 'openbox/resist.c')
-rw-r--r--openbox/resist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/resist.c b/openbox/resist.c
index f34877a0..c88f5948 100644
--- a/openbox/resist.c
+++ b/openbox/resist.c
@@ -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;