dofloat(Arg *arg) {
Client *c;
- maximized = False;
-
for(c = clients; c; c = c->next) {
if(isvisible(c)) {
resize(c, True, TopLeft);
int h, i, n, w;
Client *c;
- maximized = False;
-
w = sw - mw;
for(n = 0, c = clients; c; c = c->next)
if(isvisible(c) && !c->isfloat)
for(n = 0, c = clients; c; c = c->next)
if(isvisible(c) && !c->isfloat)
n++;
- if(!sel || sel->isfloat || n < 2 || (arrange != dotile) || maximized)
+ if(!sel || sel->isfloat || n < 2 || (arrange != dotile))
return;
if(sel == getnext(clients)) {
void
zoom(Arg *arg) {
+ int tmp;
unsigned int n;
Client *c;
+ XEvent ev;
+
+ if(!sel)
+ return;
+
+ if(sel->isfloat || (arrange == dofloat)) {
+ sel->x = sx;
+ sel->y = bh;
+ sel->w = sw;
+ sel->h = sh - bh;
+ resize(sel, True, TopLeft);
+ while(XCheckMaskEvent(dpy, EnterWindowMask, &ev));
+ return;
+ }
for(n = 0, c = clients; c; c = c->next)
if(isvisible(c) && !c->isfloat)
n++;
- if(!sel || sel->isfloat || n < 2 || (arrange != dotile) || maximized)
+ if(n < 2 || (arrange != dotile))
return;
if((c = sel) == nexttiled(clients))