Commit 4426032

Anselm R Garbe <garbeam@gmail.com>
2008-02-20 08:48:52
applied Jukka's zoom-patch
1 parent e0f0397
Changed files (1)
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);