|
|
|
@ -1,12 +1,12 @@
|
|
|
|
|
From 670216cee61a7e8063779db5369338e0ca09860b Mon Sep 17 00:00:00 2001
|
|
|
|
|
From 657ba7cd33d7aa911620a97e830ef6bba29915e1 Mon Sep 17 00:00:00 2001
|
|
|
|
|
From: Bakkeby <bakkeby@gmail.com>
|
|
|
|
|
Date: Tue, 3 May 2022 09:15:31 +0200
|
|
|
|
|
Subject: [PATCH] Adding respect size hints rule example patch
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
config.def.h | 6 +++---
|
|
|
|
|
dwm.c | 5 ++++-
|
|
|
|
|
2 files changed, 7 insertions(+), 4 deletions(-)
|
|
|
|
|
dwm.c | 6 +++++-
|
|
|
|
|
2 files changed, 8 insertions(+), 4 deletions(-)
|
|
|
|
|
|
|
|
|
|
diff --git a/config.def.h b/config.def.h
|
|
|
|
|
index a2ac963..cef998a 100644
|
|
|
|
@ -26,7 +26,7 @@ index a2ac963..cef998a 100644
|
|
|
|
|
|
|
|
|
|
/* layout(s) */
|
|
|
|
|
diff --git a/dwm.c b/dwm.c
|
|
|
|
|
index a96f33c..4af54b4 100644
|
|
|
|
|
index a96f33c..3c12770 100644
|
|
|
|
|
--- a/dwm.c
|
|
|
|
|
+++ b/dwm.c
|
|
|
|
|
@@ -91,6 +91,7 @@ struct Client {
|
|
|
|
@ -58,10 +58,18 @@ index a96f33c..4af54b4 100644
|
|
|
|
|
if (*w < bh)
|
|
|
|
|
*w = bh;
|
|
|
|
|
- if (resizehints || c->isfloating || !c->mon->lt[c->mon->sellt]->arrange) {
|
|
|
|
|
+ if (resizehints || c->respectsizehints || c->isfloating || !c->mon->lt[c->mon->sellt]->arrange) {
|
|
|
|
|
+ if (c->respectsizehints || 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 */
|
|
|
|
|
@@ -1033,6 +1036,7 @@ manage(Window w, XWindowAttributes *wa)
|
|
|
|
|
c->w = c->oldw = wa->width;
|
|
|
|
|
c->h = c->oldh = wa->height;
|
|
|
|
|
c->oldbw = wa->border_width;
|
|
|
|
|
+ c->respectsizehints = resizehints;
|
|
|
|
|
|
|
|
|
|
updatetitle(c);
|
|
|
|
|
if (XGetTransientForHint(dpy, w, &trans) && (t = wintoclient(trans))) {
|
|
|
|
|
--
|
|
|
|
|
2.19.1
|
|
|
|
|
|
|
|
|
|