commit 23a6fc551b1d1bcf33ffc6341f495703d6c80d46
Author: MLquest8 <[email protected]>
Date:   Fri Jun 12 16:42:03 2020 +0400

    [dwm][PATCH] updated sizehints for version 6.2

diff --git a/dwm.suckless.org/patches/sizehints/dwm-sizehints-6.2.diff 
b/dwm.suckless.org/patches/sizehints/dwm-sizehints-6.2.diff
new file mode 100644
index 00000000..23e533c3
--- /dev/null
+++ b/dwm.suckless.org/patches/sizehints/dwm-sizehints-6.2.diff
@@ -0,0 +1,37 @@
+From 83c943dba9aacdfc9b9f3dd9964284e53e988d7a Mon Sep 17 00:00:00 2001
+From: MLquest8 <[email protected]>
+Date: Fri, 12 Jun 2020 16:36:31 +0400
+Subject: [PATCH] sizehints updated for version 6.2
+
+---
+ dwm.c | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/dwm.c b/dwm.c
+index 9fd0286..be85fce 100644
+--- a/dwm.c
++++ b/dwm.c
+@@ -1952,7 +1952,7 @@ updatesizehints(Client *c)
+ 
+       if (!XGetWMNormalHints(dpy, c->win, &size, &msize))
+               /* size is uninitialized, ensure that size.flags aren't used */
+-              size.flags = PSize;
++              size.flags = 0;
+       if (size.flags & PBaseSize) {
+               c->basew = size.base_width;
+               c->baseh = size.base_height;
+@@ -1984,6 +1984,11 @@ updatesizehints(Client *c)
+               c->maxa = (float)size.max_aspect.x / size.max_aspect.y;
+       } else
+               c->maxa = c->mina = 0.0;
++      if(size.flags & PSize) {
++              c->basew = size.base_width;
++              c->baseh = size.base_height;
++              c->isfloating = True;
++      }
+       c->isfixed = (c->maxw && c->maxh && c->maxw == c->minw && c->maxh == 
c->minh);
+ }
+ 
+-- 
+2.26.2
+
diff --git a/dwm.suckless.org/patches/sizehints/index.md 
b/dwm.suckless.org/patches/sizehints/index.md
index 865b04a5..de5eddb2 100644
--- a/dwm.suckless.org/patches/sizehints/index.md
+++ b/dwm.suckless.org/patches/sizehints/index.md
@@ -15,8 +15,10 @@ There is no configuration for this patch.
 
 Download
 --------
+* [dwm-sizehints-6.2.diff](dwm-sizehints-6.2.diff) (12/06/2020)
 * [dwm-sizehints-5.7.2.diff](dwm-sizehints-5.7.2.diff) (695B) (20091221)
 
 Author
 ------
+* MLquest8 (updated for 6.2) (miskuzius at gmail.com)
 * Ray Kohler - ataraxia937 gmail com


Reply via email to