summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2021-03-25 12:00:05 -0500
committerzachir <zachir@librem.one>2021-03-25 12:00:05 -0500
commiteec9aa04786c0240c690e6a9997b0167f558f571 (patch)
tree8a95a1fd59cc1ece1350819f1a4d012b74c44a0b
parentf8dea854fe2144c0e48a44447dbe53719905cffb (diff)
Add ability to ignore resize hints for terminals
-rw-r--r--dwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index 5fb86a6..be13dda 100644
--- a/dwm.c
+++ b/dwm.c
@@ -432,7 +432,7 @@ applysizehints(Client *c, int *x, int *y, int *w, int *h, int interact)
*h = bh;
if (*w < bh)
*w = bh;
- if (resizehints || c->isfloating || !c->mon->lt[c->mon->sellt]->arrange) {
+ if ((resizehints && !c->isterminal) || 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 */