aewl
diff event.c @ 565:fe766305eed1
applied Gottox' windowarea patch
author | arg@mig29 |
---|---|
date | Thu, 16 Nov 2006 14:40:57 +0100 |
parents | 12deea36603d |
children | 601842ee4484 |
line diff
1.1 --- a/event.c Wed Nov 08 17:16:38 2006 +0100 1.2 +++ b/event.c Thu Nov 16 14:40:57 2006 +0100 1.3 @@ -48,14 +48,14 @@ 1.4 XSync(dpy, False); 1.5 c->x = ocx + (ev.xmotion.x - x1); 1.6 c->y = ocy + (ev.xmotion.y - y1); 1.7 - if(abs(sx + c->x) < SNAP) 1.8 - c->x = sx; 1.9 - else if(abs((sx + sw) - (c->x + c->w)) < SNAP) 1.10 - c->x = sw - c->w - 2 * BORDERPX; 1.11 - if(abs((sy + bh) - c->y) < SNAP) 1.12 - c->y = sy + bh; 1.13 - else if(abs((sy + sh) - (c->y + c->h)) < SNAP) 1.14 - c->y = sh - c->h - 2 * BORDERPX; 1.15 + if(abs(wax + c->x) < SNAP) 1.16 + c->x = wax; 1.17 + else if(abs((wax + waw) - (c->x + c->w)) < SNAP) 1.18 + c->x = wax + waw - c->w - 2 * BORDERPX; 1.19 + if(abs(way - c->y) < SNAP) 1.20 + c->y = way; 1.21 + else if(abs((way + wah) - (c->y + c->h)) < SNAP) 1.22 + c->y = way + wah - c->h - 2 * BORDERPX; 1.23 resize(c, False, TopLeft); 1.24 break; 1.25 }