Client *target;
int tl, tt, tr, tb; /* 1 past the target's edges on each side */
+ if (!WINDOW_IS_CLIENT(it->data))
+ continue;
target = it->data;
/* don't snap to self or non-visibles */
if (!target->frame->visible || target == c) continue;
/* snap to other windows */
if (resist_windows) {
for (it = stacking_list; it != NULL; it = it->next) {
+ if (!WINDOW_IS_CLIENT(it->data))
+ continue;
target = it->data;
/* don't snap to invisibles or ourself */