about summary refs log tree commit diff stats
path: root/view.c
diff options
context:
space:
mode:
Diffstat (limited to 'view.c')
-rw-r--r--view.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/view.c b/view.c
index 5667134..682e331 100644
--- a/view.c
+++ b/view.c
@@ -45,17 +45,18 @@ reorder() {
 static void
 togglemax(Client *c)
 {
+	XEvent ev;
 	if((c->ismax = !c->ismax)) {
 		c->rx = c->x; c->x = sx;
 		c->ry = c->y; c->y = bh;
 		c->rw = c->w; c->w = sw;
-		c->rh = c->h; c->h = sh;
+		c->rh = c->h; c->h = sh - bh;
 	}
 	else {
 		c->x = c->rx;
 		c->y = c->ry;
-		c->w = c->w;
-		c->h = c->h;
+		c->w = c->rw;
+		c->h = c->rh;
 	}
 	resize(c, True, TopLeft);
 	while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
@@ -231,7 +232,7 @@ void
 restack() {
 	Client *c;
 	XEvent ev;
-	
+
 	if(!sel) {
 		drawstatus();
 		return;
@@ -296,7 +297,6 @@ void
 zoom(Arg *arg) {
 	unsigned int n;
 	Client *c;
-	XEvent ev;
 
 	if(!sel)
 		return;
^
e25474154 ^

e25474154 ^
fd522aa40 ^
e25474154 ^


d171a8b36 ^
e25474154 ^
92e10e4b1 ^
d171a8b36 ^
e25474154 ^







92b8fac94 ^
e25474154 ^

36e25a684 ^
e25474154 ^


e25474154 ^

091c1b307 ^

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