diff options
author | Anselm R Garbe <garbeam@gmail.com> | 2008-09-07 09:53:59 +0100 |
---|---|---|
committer | Anselm R Garbe <garbeam@gmail.com> | 2008-09-07 09:53:59 +0100 |
commit | 83abfc05eb5a1e6ee762ce2921d9d5270e40c9ee (patch) | |
tree | b6327c013f5541de534eb4d684e6a73a7c3eb4aa /dwm.c | |
parent | 862b0d541d76fb350bff36a2fef5f6ab02625d02 (diff) |
applied XGetWMNormalHints fix
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |