applied nibbles fixes, slightly modified

This commit is contained in:
Anselm R Garbe 2008-05-29 18:42:53 +01:00
parent fde58d5e63
commit 75690c808d

4
dwm.c
View File

@ -267,7 +267,7 @@ arrange(void) {
XMoveResizeWindow(dpy, c->win, wx, wy, ww - 2 * c->bw, wh - 2 * c->bw); XMoveResizeWindow(dpy, c->win, wx, wy, ww - 2 * c->bw, wh - 2 * c->bw);
c->ismoved = True; c->ismoved = True;
} }
else if(!lt->arrange || c->isfloating) else if(!lt->arrange || ismax || c->isfloating)
resize(c, c->x, c->y, c->w, c->h, True); resize(c, c->x, c->y, c->w, c->h, True);
c->isbanned = False; c->isbanned = False;
} }
@ -1719,7 +1719,7 @@ void
zoom(const void *arg) { zoom(const void *arg) {
Client *c = sel; Client *c = sel;
if(!lt->arrange || sel->isfloating) if(ismax || !lt->arrange || (sel && sel->isfloating))
return; return;
if(c == nexttiled(clients)) if(c == nexttiled(clients))
if(!c || !(c = nexttiled(c->next))) if(!c || !(c = nexttiled(c->next)))