From 04b633ddf394fccf5a3125ea17239bad6997c8df Mon Sep 17 00:00:00 2001 From: "arg@mig29" Date: Tue, 31 Oct 2006 09:02:16 +0100 Subject: make sure that changing sx has no impact on snapping --- event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/event.c b/event.c index 19db371..e3bdea4 100644 --- a/event.c +++ b/event.c @@ -48,7 +48,7 @@ movemouse(Client *c) { XSync(dpy, False); c->x = ocx + (ev.xmotion.x - x1); c->y = ocy + (ev.xmotion.y - y1); - if(abs(c->x) < SNAP) + if(abs(sx + c->x) < SNAP) c->x = sx; else if(abs((sx + sw) - (c->x + c->w)) < SNAP) c->x = sw - c->w - 2 * BORDERPX; -- cgit 1.4.1-2-gfad0 Lisp playgrounddbane <dbane@tilde.institute>
about summary refs log tree commit diff stats
path: root/doc/bane.20.cdr15.md
blob: 844eaee1e4b877fc56c6838d403bfa740efa4f27 (plain) (blame)
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