浏览代码

allowing zoom within master area as well

Anselm R. Garbe 19 年之前
父节点
当前提交
0faaba04a5
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      view.c

+ 4 - 3
view.c

@@ -302,10 +302,11 @@ zoom(Arg *arg) {
 	}
 	}
 	for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
 	for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
 		n++;
 		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()))
 		if(!(c = topofstack()))
 			return;
 			return;
 		swap(c, sel);
 		swap(c, sel);