X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=layout.c;h=0706c624a4d35edf601b09689913db32120ce492;hb=5a1a2edf0e584e660e16d2e01094851e0f9161e2;hp=7b9b3ef2f8d519984af9e085409f59aa3a45834c;hpb=d934296476be7345842fec1a2630d1752c704078;p=dwm.git diff --git a/layout.c b/layout.c index 7b9b3ef..0706c62 100644 --- a/layout.c +++ b/layout.c @@ -1,9 +1,4 @@ -/* © 2006-2007 Anselm R. Garbe - * © 2006-2007 Sander van Dijk - * © 2006-2007 Jukka Salmi - * © 2007 Premysl Hruby - * © 2007 Szabolcs Nagy - * See LICENSE file for license details. */ +/* See LICENSE file for copyright and license details. */ #include "dwm.h" #include @@ -93,9 +88,7 @@ floating(void) { for(c = clients; c; c = c->next) if(isvisible(c)) { - if(c->isbanned) - XMoveWindow(dpy, c->win, c->x, c->y); - c->isbanned = False; + unban(c); resize(c, c->x, c->y, c->w, c->h, True); } else @@ -248,7 +241,7 @@ togglemax(const char *arg) { sel->ry = sel->y; sel->rw = sel->w; sel->rh = sel->h; - resize(sel, wax, way, waw - 2 * BORDERPX, wah - 2 * BORDERPX, True); + resize(sel, wax, way, waw - 2 * sel->border, wah - 2 * sel->border, True); } else resize(sel, sel->rx, sel->ry, sel->rw, sel->rh, True);