Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
allowing zoom within master area as well
[dwm.git]
/
view.c
diff --git
a/view.c
b/view.c
index
2143d70
..
b4de573
100644
(file)
--- 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++;
}
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);
if(!(c = topofstack()))
return;
swap(c, sel);