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;
- int tl, tt, tr, tb; /* 1 past the target's edges on each side */
+ gint tl, tt, tr, tb; /* 1 past the target's edges on each side */
if (!WINDOW_IS_CLIENT(it->data))
continue;
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;