about summary refs log tree commit diff stats
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
parentdc1690ce0fac57ef4c8cd3f0e833cfa07411830f (diff)
downloaddwm-99785382ae6d4b20e8baf33542059e466e0b3c7c.tar.gz
changing snap priority
-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;
c@akkartik.com> 2020-11-29 13:42:27 -0800 7306' href='/akkartik/mu/commit/html/406int32.mu.html?h=main&id=775f77c3346d231fc6133de2c7da2bb1e8ef0c2e'>775f77c3 ^
3350c34a ^
775f77c3 ^

3350c34a ^
775f77c3 ^
































3350c34a ^
775f77c3 ^





3350c34a ^
775f77c3 ^


3350c34a ^
775f77c3 ^








3350c34a ^
775f77c3 ^


3350c34a ^
775f77c3 ^






3350c34a ^
775f77c3 ^


3350c34a ^
775f77c3 ^






1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101