about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--dwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c
index 363c202..66daba3 100644
--- a/dwm.c
+++ b/dwm.c
@@ -2009,11 +2009,11 @@ viewprevtag(const char *arg) {
 
 void
 zoom(const char *arg) {
-	Client *c;
+	Client *c = sel;
 
 	if(!sel || !dozoom || sel->isfloating)
 		return;
-	if((c = sel) == nexttiled(clients, c->monitor))
+	if(c == nexttiled(clients, c->monitor))
 		if(!(c = nexttiled(c->next, c->monitor)))
 			return;
 	detach(c);
0700 committer Kartik K. Agaram <vc@akkartik.com> 2015-07-29 15:55:05 -0700 1885' href='/akkartik/mu/commit/html/global.mu.html?h=hlt&id=9570363aec35e187e2395b1760a4b94e71580ac9'>9570363a ^
83fcebf3 ^










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