]> Dogcows Code - chaz/openbox/blobdiff - plugins/resistance.c
ignore cparse.c
[chaz/openbox] / plugins / resistance.c
index 36fe269e28701a01b68e63acd236f1cbceb999ed..628802bd895f7aa98739e9c4530f876eae17414f 100644 (file)
@@ -39,7 +39,7 @@ static void resist(Client *c, int *x, int *y)
 
             target = it->data;
             /* don't snap to self or non-visibles */
-            if (target == c || !target->frame->visible) continue; 
+            if (!target->frame->visible || target == c) continue; 
 
             tl = target->frame->area.x - 1;
             tt = target->frame->area.y - 1;
@@ -50,7 +50,6 @@ 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.020466 seconds and 4 git commands to generate.