dont snap to self

This commit is contained in:
Dana Jansens 2003-03-21 09:33:41 +00:00
parent 23ee7b9a93
commit 1418e9edc4

View 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;