fixed urgent hint handling

master
Anselm R Garbe 2008-03-05 13:13:13 +00:00
parent 2e38296edd
commit 5d9ae3f3b7
1 changed files with 4 additions and 3 deletions

5
dwm.c
View File

@ -1870,9 +1870,10 @@ void
updatewmhints(Client *c) {
XWMHints *wmh;
if(c == sel)
return;
if((wmh = XGetWMHints(dpy, c->win))) {
if(c == sel)
sel->isurgent = False;
else
c->isurgent = (wmh->flags & XUrgencyHint) ? True : False;
XFree(wmh);
}