summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-02-20 13:48:52 +0000
committerAnselm R Garbe <garbeam@gmail.com>2008-02-20 13:48:52 +0000
commit4426032450777e63ac9a8967cd67382497954c51 (patch)
tree07bfbb35fc96ccc78478ed7384ea5ea4dd25740c
parente0f039789643381485dab5c467f66db5162d4f63 (diff)
applied Jukka's zoom-patch
-rw-r--r--dwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c
index 363c2028..66daba3a 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);