dont snap to self
This commit is contained in:
parent
23ee7b9a93
commit
1418e9edc4
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue