dwm-sizehints-6.2.diff - sites - public wiki contents of suckless.org
 (HTM) git clone git://git.suckless.org/sites
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
       dwm-sizehints-6.2.diff (1023B)
       ---
            1 From 83c943dba9aacdfc9b9f3dd9964284e53e988d7a Mon Sep 17 00:00:00 2001
            2 From: MLquest8 <miskuzius@gmail.com>
            3 Date: Fri, 12 Jun 2020 16:36:31 +0400
            4 Subject: [PATCH] sizehints updated for version 6.2
            5 
            6 ---
            7  dwm.c | 7 ++++++-
            8  1 file changed, 6 insertions(+), 1 deletion(-)
            9 
           10 diff --git a/dwm.c b/dwm.c
           11 index 9fd0286..be85fce 100644
           12 --- a/dwm.c
           13 +++ b/dwm.c
           14 @@ -1952,7 +1952,7 @@ updatesizehints(Client *c)
           15  
           16          if (!XGetWMNormalHints(dpy, c->win, &size, &msize))
           17                  /* size is uninitialized, ensure that size.flags aren't used */
           18 -                size.flags = PSize;
           19 +                size.flags = 0;
           20          if (size.flags & PBaseSize) {
           21                  c->basew = size.base_width;
           22                  c->baseh = size.base_height;
           23 @@ -1984,6 +1984,11 @@ updatesizehints(Client *c)
           24                  c->maxa = (float)size.max_aspect.x / size.max_aspect.y;
           25          } else
           26                  c->maxa = c->mina = 0.0;
           27 +        if(size.flags & PSize) {
           28 +                c->basew = size.base_width;
           29 +                c->baseh = size.base_height;
           30 +                c->isfloating = True;
           31 +        }
           32          c->isfixed = (c->maxw && c->maxh && c->maxw == c->minw && c->maxh == c->minh);
           33  }
           34  
           35 -- 
           36 2.26.2
           37