summaryrefslogtreecommitdiff
path: root/openbox/stacking.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-23 20:45:31 +0000
committerDana Jansens <danakj@orodu.net>2003-03-23 20:45:31 +0000
commit88097ba46cf4003f62effdc8b3aea64cdce6479f (patch)
tree1c5486f1fb786c24d103b95cd06783f493d5f45b /openbox/stacking.c
parentd88f34e1005500e0cab4002e945c6582eba06c4a (diff)
compare it to null like i do elsewhere
Diffstat (limited to 'openbox/stacking.c')
-rw-r--r--openbox/stacking.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/stacking.c b/openbox/stacking.c
index 081bde93..be6d07d6 100644
--- a/openbox/stacking.c
+++ b/openbox/stacking.c
@@ -18,7 +18,7 @@ void stacking_set_list()
if (size > 0) {
windows = g_new(Window, size);
win_it = windows;
- for (it = g_list_last(stacking_list); it; it = it->prev, ++win_it)
+ for (it = g_list_last(stacking_list); it != NULL; it = it->prev, ++win_it)
*win_it = ((Client*)it->data)->window;
} else
windows = NULL;
@@ -46,7 +46,7 @@ void stacking_raise(Client *client)
/* the stacking list is from highest to lowest */
it = stacking_list;
- while (it) {
+ while (it != NULL) {
Client *c = it->data;
if (client->layer >= c->layer && m != c)
break;