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 | |
| parent | I prefer doing the check in showhide (diff) | |
| download | dwm-83abfc05eb5a1e6ee762ce2921d9d5270e40c9ee.tar.gz dwm-83abfc05eb5a1e6ee762ce2921d9d5270e40c9ee.zip | |
applied XGetWMNormalHints fix
| -rw-r--r-- | dwm.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -1590,7 +1590,9 @@ updatesizehints(Client *c) { | |||
| 1590 | long msize; | 1590 | long msize; |
| 1591 | XSizeHints size; | 1591 | XSizeHints size; |
| 1592 | 1592 | ||
| 1593 | XGetWMNormalHints(dpy, c->win, &size, &msize); | 1593 | if(!XGetWMNormalHints(dpy, c->win, &size, &msize)) |
| 1594 | /* size is uninitialized, ensure that size.flags aren't used */ | ||
| 1595 | size.flags = PSize; | ||
| 1594 | if(size.flags & PBaseSize) { | 1596 | if(size.flags & PBaseSize) { |
| 1595 | c->basew = size.base_width; | 1597 | c->basew = size.base_width; |
| 1596 | c->baseh = size.base_height; | 1598 | c->baseh = size.base_height; |
