diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-21 09:33:41 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-21 09:33:41 +0000 |
| commit | 1418e9edc4926a0061fa3c2c8d036a33acd55491 (patch) | |
| tree | 022abb33b4236bbb2af472dd50a4cbb453de7d32 /plugins | |
| parent | 23ee7b9a934d5aef2835b684edb9192fa11feb06 (diff) | |
dont snap to self
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/resistance.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |
