mirror of
https://git.suckless.org/dwm
synced 2024-12-27 03:16:32 +00:00
applied XGetWMNormalHints fix
This commit is contained in:
parent
862b0d541d
commit
83abfc05eb
1 changed files with 3 additions and 1 deletions
4
dwm.c
4
dwm.c
|
@ -1590,7 +1590,9 @@ updatesizehints(Client *c) {
|
||||||
long msize;
|
long msize;
|
||||||
XSizeHints size;
|
XSizeHints size;
|
||||||
|
|
||||||
XGetWMNormalHints(dpy, c->win, &size, &msize);
|
if(!XGetWMNormalHints(dpy, c->win, &size, &msize))
|
||||||
|
/* size is uninitialized, ensure that size.flags aren't used */
|
||||||
|
size.flags = PSize;
|
||||||
if(size.flags & PBaseSize) {
|
if(size.flags & PBaseSize) {
|
||||||
c->basew = size.base_width;
|
c->basew = size.base_width;
|
||||||
c->baseh = size.base_height;
|
c->baseh = size.base_height;
|
||||||
|
|
Loading…
Reference in a new issue