about summary refs log tree commit diff stats
path: root/dwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/dwm.c b/dwm.c
index 87d0ada..f2bc4ba 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1044,11 +1044,11 @@ manage(Window w, XWindowAttributes *wa)
 		applyrules(c);
 	}
 
-	if (c->x + WIDTH(c) > c->mon->mx + c->mon->mw)
-		c->x = c->mon->mx + c->mon->mw - WIDTH(c);
-	if (c->y + HEIGHT(c) > c->mon->my + c->mon->mh)
-		c->y = c->mon->my + c->mon->mh - HEIGHT(c);
-	c->x = MAX(c->x, c->mon->mx);
+	if (c->x + WIDTH(c) > c->mon->wx + c->mon->ww)
+		c->x = c->mon->wx + c->mon->ww - WIDTH(c);
+	if (c->y + HEIGHT(c) > c->mon->wy + c->mon->wh)
+		c->y = c->mon->wy + c->mon->wh - HEIGHT(c);
+	c->x = MAX(c->x, c->mon->wx);
 	c->y = MAX(c->y, c->mon->wy);
 	c->bw = borderpx;
 
='author Kartik K. Agaram <vc@akkartik.com> 2021-03-15 20:39:23 -0700 committer Kartik K. Agaram <vc@akkartik.com> 2021-03-15 20:41:13 -0700 reintroduce Entry label' href='/akkartik/mu/commit/mu-init.subx?h=main&id=460528e85be117ac9bbfcb79bceb6e54eceecbb7'>460528e8 ^
341f0c59 ^

8482d5d7 ^
5c5bca9d ^
6169ec59 ^












71e4f381 ^
341f0c59 ^



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