From: Anselm R. Garbe Date: Fri, 5 Jan 2007 14:08:25 +0000 (+0100) Subject: allowing zoom within master area as well X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=commitdiff_plain;h=0faaba04a589c288a3f117f6c5b2c259c2b6790d allowing zoom within master area as well --- 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);