Remove unnecessary tiled resize hints code

This commit is contained in:
Alex Kotov 2021-11-13 22:56:43 +05:00
parent a77665ab5c
commit 53e0462a31
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
2 changed files with 1 additions and 2 deletions

View File

@ -39,7 +39,6 @@ static const Rule rules[] = {
/* layout(s) */
static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
static const int nmaster = 1; /* number of clients in master area */
static const int resizehints = 0; /* 1 means respect size hints in tiled resizals */
static const Layout layouts[] = {
/* symbol arrange function */

2
dwm.c
View File

@ -386,7 +386,7 @@ applysizehints(Client *c, int *x, int *y, int *w, int *h, int bw, int interact)
*h = bh;
if (*w < bh)
*w = bh;
if (resizehints || c->isfloating || !c->mon->lt[c->mon->sellt]->arrange) {
if (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 */