[hackers] [dwm] applied XGetWMNormalHints fix || Anselm R Garbe

From: <hg_AT_suckless.org>
Date: Sun, 7 Sep 2008 08:54:05 +0000 (UTC)

changeset: 1357:33591b7c6bf7
tag: tip
user: Anselm R Garbe <garbeam_AT_gmail.com>
date: Sun Sep 07 09:53:59 2008 +0100
files: dwm.c
description:
applied XGetWMNormalHints fix

diff -r d2658eac8ff9 -r 33591b7c6bf7 dwm.c
--- a/dwm.c Sat Sep 06 09:34:49 2008 +0100
+++ b/dwm.c Sun Sep 07 09:53:59 2008 +0100
@@ -1590,7 +1590,9 @@
         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;
Received on Sun Sep 07 2008 - 08:54:05 UTC

This archive was generated by hypermail 2.2.0 : Sun Sep 07 2008 - 09:00:06 UTC