]> Dogcows Code - chaz/openbox/commitdiff
don't snap to non-visibles
authorDana Jansens <danakj@orodu.net>
Fri, 21 Mar 2003 09:38:13 +0000 (09:38 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 21 Mar 2003 09:38:13 +0000 (09:38 +0000)
plugins/resistance.c

index 3d6c4dc1565ae38c728e248651fe62b63f58d5e0..c7f47c3e07bdec1c907fa0d7dd052805109982e6 100644 (file)
@@ -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)
This page took 0.027729 seconds and 4 git commands to generate.