summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-21 09:38:13 +0000
committerDana Jansens <danakj@orodu.net>2003-03-21 09:38:13 +0000
commit921a711daddffc649738f14b10f7eb703df946bc (patch)
tree475c4050662515368be723c686cd12b325a219a2
parent1418e9edc4926a0061fa3c2c8d036a33acd55491 (diff)
don't snap to non-visibles
-rw-r--r--plugins/resistance.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/resistance.c b/plugins/resistance.c
index 3d6c4dc1..c7f47c3e 100644
--- a/plugins/resistance.c
+++ b/plugins/resistance.c
@@ -39,6 +39,7 @@ static void resist(Client *c, int *x, int *y)
target = it->data;
if (target == c) continue; /* don't snap to self */
+ if (!target->visible) continue; /* don't snap to non-visibles */
tl = target->frame->area.x - 1;
tt = target->frame->area.y - 1;
@@ -49,6 +50,7 @@ static void resist(Client *c, int *x, int *y)
window edge available, without going all the way from
bottom-to-top in the stacking list
*/
+ g_print("r %d tl %d\n", r, tl);
if (!snapx && cl >= tr && l < tr && l >= tr - resistance)
*x = tr, snapx = TRUE;
else if (!snapx && cr <= tl && r > tl && r <= tl + resistance)