diff --git a/plugins/resistance.c b/plugins/resistance.c index 36fe269e..64dfe0e7 100644 --- a/plugins/resistance.c +++ b/plugins/resistance.c @@ -39,7 +39,7 @@ static void resist(Client *c, int *x, int *y) target = it->data; /* don't snap to self or non-visibles */ - if (target == c || !target->frame->visible) continue; + if (!target->frame->visible || target == c) continue; tl = target->frame->area.x - 1; tt = target->frame->area.y - 1;