X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/0f1f30daca0eaf0a400fd3f8d274594c07b32a51..f68a01cd767659190bf690e29986184348672647:/dwm.c diff --git a/dwm.c b/dwm.c index 39b0a51..d274b50 100644 --- a/dwm.c +++ b/dwm.c @@ -349,7 +349,7 @@ applysizehints(Client *c, int *x, int *y, int *w, int *h, Bool interact) { *h = bh; if(*w < bh) *w = bh; - if(resizehints || c->isfloating) { + if(resizehints || c->isfloating || !c->mon->lt[c->mon->sellt]->arrange) { /* see last two sentences in ICCCM 4.1.2.3 */ baseismin = c->basew == c->minw && c->baseh == c->minh; if(!baseismin) { /* temporarily remove base dimensions */ @@ -1597,7 +1597,7 @@ showhide(Client *c) { } else { /* hide clients bottom up */ showhide(c->snext); - XMoveWindow(dpy, c->win, c->x + 2 * sw, c->y); + XMoveWindow(dpy, c->win, c->w * -2, c->y); } }