浏览代码

applied Jukka's zoom-patch

Anselm R Garbe 17 年之前
父节点
当前提交
4426032450
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      dwm.c

+ 2 - 2
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);