From 00d8c8d379391d7a47f09c343e4d72dfa53cd29b Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 21 Mar 2003 09:38:51 +0000 Subject: [PATCH] syntax error! --- plugins/resistance.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/resistance.c b/plugins/resistance.c index c7f47c3e..36fe269e 100644 --- a/plugins/resistance.c +++ b/plugins/resistance.c @@ -38,8 +38,8 @@ static void resist(Client *c, int *x, int *y) int tl, tt, tr, tb; /* 1 past the target's edges on each side */ target = it->data; - if (target == c) continue; /* don't snap to self */ - if (!target->visible) continue; /* don't snap to non-visibles */ + /* don't snap to self or non-visibles */ + if (target == c || !target->frame->visible) continue; tl = target->frame->area.x - 1; tt = target->frame->area.y - 1; -- 2.39.2