about summary refs log tree commit diff stats
path: root/event.c
diff options
context:
space:
mode:
authorarg@mig29 <unknown>2006-10-30 12:07:00 +0100
committerarg@mig29 <unknown>2006-10-30 12:07:00 +0100
commit99785382ae6d4b20e8baf33542059e466e0b3c7c (patch)
treecf0f309d02fe1ebb47387313c6f98ac57b92af06 /event.c
parentdc1690ce0fac57ef4c8cd3f0e833cfa07411830f (diff)
downloaddwm-99785382ae6d4b20e8baf33542059e466e0b3c7c.tar.gz
changing snap priority
Diffstat (limited to 'event.c')
-rw-r--r--event.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/event.c b/event.c
index f0e88d0..007dbbc 100644
--- a/event.c
+++ b/event.c
@@ -50,11 +50,11 @@ movemouse(Client *c) {
 			c->y = ocy + (ev.xmotion.y - y1);
 			if(abs(c->x) < sx + SNAP)
 				c->x = sx;
+			else if(c->x + c->w > sx + sw - SNAP)
+				c->x = sw - c->w - 2 * BORDERPX;
 			if(abs(c->y) < sy + bh + SNAP)
 				c->y = sy + bh;
-			if(c->x + c->w > sx + sw - SNAP)
-				c->x = sw - c->w - 2 * BORDERPX;
-			if(c->y + c->h > sy + sh - SNAP)
+			else if(c->y + c->h > sy + sh - SNAP)
 				c->y = sh - c->h - 2 * BORDERPX;
 			resize(c, False, TopLeft);
 			break;