fixed urgent hint handling 5d9ae3f3
Anselm R Garbe · 2008-03-05 13:13 1 file(s) · +4 −3
dwm.c +4 −3
1870 1870
updatewmhints(Client *c) {
1871 1871
	XWMHints *wmh;
1872 1872
1873 -
	if(c == sel)
1874 -
		return;
1875 1873
	if((wmh = XGetWMHints(dpy, c->win))) {
1876 -
		c->isurgent = (wmh->flags & XUrgencyHint) ? True : False;
1874 +
		if(c == sel)
1875 +
			sel->isurgent = False;
1876 +
		else
1877 +
			c->isurgent = (wmh->flags & XUrgencyHint) ? True : False;
1877 1878
		XFree(wmh);
1878 1879
	}
1879 1880
}