applied XGetWMNormalHints fix
Anselm R Garbe garbeam@gmail.com
Sun, 07 Sep 2008 09:53:59 +0100
1 files changed,
3 insertions(+),
1 deletions(-)
jump to
M
dwm.c
→
dwm.c
@@ -1590,7 +1590,9 @@ updatesizehints(Client *c) {
long msize; 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) { c->basew = size.base_width; c->baseh = size.base_height;