Browse Source

fixed urgent hint handling

master
Anselm R Garbe 17 years ago
parent
commit
5d9ae3f3b7
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      dwm.c

+ 4
- 3
dwm.c View File

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


Loading…
Cancel
Save