summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-01-05 15:08:25 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-01-05 15:08:25 +0100
commit0faaba04a589c288a3f117f6c5b2c259c2b6790d (patch)
tree69a6fd707b84c50cf4ea7ad50e49f4fc10a35ad3
parentchanged plus key to MODKEY-Shift-plus (US-layout restrictions ;) (diff)
downloaddwm-0faaba04a589c288a3f117f6c5b2c259c2b6790d.tar.gz
dwm-0faaba04a589c288a3f117f6c5b2c259c2b6790d.zip
allowing zoom within master area as well
Diffstat (limited to '')
-rw-r--r--view.c7
1 files changed, 4 insertions, 3 deletions
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) {
302 } 302 }
303 for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next)) 303 for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
304 n++; 304 n++;
305 if(n <= nmaster || (arrange == dofloat))
306 return;
307 305
308 if(ismaster((c = sel))) { 306 c = sel;
307 if(n <= nmaster || (arrange == dofloat))
308 pop(c);
309 else if(ismaster(sel)) {
309 if(!(c = topofstack())) 310 if(!(c = topofstack()))
310 return; 311 return;
311 swap(c, sel); 312 swap(c, sel);