summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-21 09:38:51 +0000
committerDana Jansens <danakj@orodu.net>2003-03-21 09:38:51 +0000
commit00d8c8d379391d7a47f09c343e4d72dfa53cd29b (patch)
tree5dbefa5600bf847bc48badb19fe1c31b713c5bb9 /plugins
parent921a711daddffc649738f14b10f7eb703df946bc (diff)
syntax error!
Diffstat (limited to 'plugins')
-rw-r--r--plugins/resistance.c4
1 files 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;