From: Dana Jansens Date: Fri, 21 Mar 2003 09:38:51 +0000 (+0000) Subject: syntax error! X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=00d8c8d379391d7a47f09c343e4d72dfa53cd29b;p=chaz%2Fopenbox syntax error! --- 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;