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.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/view.c b/view.c
index 2143d70..b4de573 100644
--- a/view.c
+++ b/view.c
@@ -302,10 +302,11 @@ zoom(Arg *arg) {
 	}
 	for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
 		n++;
-	if(n <= nmaster || (arrange == dofloat))
-		return;
 
-	if(ismaster((c = sel))) {
+	c = sel;
+	if(n <= nmaster || (arrange == dofloat))
+		pop(c);
+	else if(ismaster(sel)) {
 		if(!(c = topofstack()))
 			return;
 		swap(c, sel);
8-18 21:09:27 -0700 committer Kartik K. Agaram <vc@akkartik.com> 2016-08-18 21:09:27 -0700 3225 - testable interface for writing files' href='/akkartik/mu/commit/filesystem.mu?h=hlt&id=a621ef95f4728d15bdf0b1828ac7dd6ac5af2795'>a621ef95 ^
da925d06 ^

a621ef95 ^



da925d06 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20