X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=plugins%2Fresistance.c;fp=plugins%2Fresistance.c;h=3d6c4dc1565ae38c728e248651fe62b63f58d5e0;hb=1418e9edc4926a0061fa3c2c8d036a33acd55491;hp=68106abf2b17eeb2bb67d3cb4ecb015d50501f2a;hpb=23ee7b9a934d5aef2835b684edb9192fa11feb06;p=chaz%2Fopenbox diff --git a/plugins/resistance.c b/plugins/resistance.c index 68106abf..3d6c4dc1 100644 --- a/plugins/resistance.c +++ b/plugins/resistance.c @@ -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;