]> Dogcows Code - chaz/openbox/commitdiff
dont snap to self
authorDana Jansens <danakj@orodu.net>
Fri, 21 Mar 2003 09:33:41 +0000 (09:33 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 21 Mar 2003 09:33:41 +0000 (09:33 +0000)
plugins/resistance.c

index 68106abf2b17eeb2bb67d3cb4ecb015d50501f2a..3d6c4dc1565ae38c728e248651fe62b63f58d5e0 100644 (file)
@@ -38,6 +38,7 @@ 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 */
 
             tl = target->frame->area.x - 1;
             tt = target->frame->area.y - 1;
This page took 0.021401 seconds and 4 git commands to generate.