pinosaur
/
dwm.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
862b0d5
)
applied XGetWMNormalHints fix
author
Anselm R Garbe
<garbeam@gmail.com>
Sun, 7 Sep 2008 08:53:59 +0000
(09:53 +0100)
committer
Anselm R Garbe
<garbeam@gmail.com>
Sun, 7 Sep 2008 08:53:59 +0000
(09:53 +0100)
dwm.c
patch
|
blob
|
history
diff --git
a/dwm.c
b/dwm.c
index
965d1e3
..
dd39fe1
100644
(file)
--- a/
dwm.c
+++ b/
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;