applied XGetWMNormalHints fix 83abfc05
Anselm R Garbe · 2008-09-07 09:53 1 file(s) · +3 −1
dwm.c +3 −1
1590 1590
	long msize;
1591 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 1596
	if(size.flags & PBaseSize) {
1595 1597
		c->basew = size.base_width;
1596 1598
		c->baseh = size.base_height;