Introduction
Introduction Statistics Contact Development Disclaimer Help
tfixed stupid bug of snap-to-screen - dwm - [fork] customized build of dwm, the…
git clone git://src.adamsgaard.dk/dwm
Log
Files
Refs
README
LICENSE
---
commit 51c7589c8754dd171f218663d83957e1d9fe0429
parent 99785382ae6d4b20e8baf33542059e466e0b3c7c
Author: arg@mig29 <unknown>
Date: Mon, 30 Oct 2006 12:26:55 +0100
fixed stupid bug of snap-to-screen
Diffstat:
M event.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/event.c b/event.c
t@@ -48,13 +48,13 @@ movemouse(Client *c) {
XSync(dpy, False);
c->x = ocx + (ev.xmotion.x - x1);
c->y = ocy + (ev.xmotion.y - y1);
- if(abs(c->x) < sx + SNAP)
+ if(abs(c->x) < SNAP)
c->x = sx;
- else if(c->x + c->w > sx + sw - SNAP)
+ else if(abs((sx + sw) - (c->x + c->w)) < SNAP)
c->x = sw - c->w - 2 * BORDERPX;
- if(abs(c->y) < sy + bh + SNAP)
+ if(abs((sy + bh) - c->y) < SNAP)
c->y = sy + bh;
- else if(c->y + c->h > sy + sh - SNAP)
+ else if(abs((sy + sh) - (c->y + c->h)) < SNAP)
c->y = sh - c->h - 2 * BORDERPX;
resize(c, False, TopLeft);
break;
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.