Client/Event/Tag: Fix XUrgencyHint support

This commit is contained in:
Martin Duquesnoy
2010-04-04 15:42:51 +02:00
parent 9c154fd0f3
commit ee13255297
5 changed files with 16 additions and 13 deletions

View File

@@ -477,12 +477,12 @@ propertynotify(XPropertyEvent *ev)
client_size_hints(c);
break;
case XA_WM_HINTS:
if((h = XGetWMHints(dpy, c->win)) && (h->flags & XUrgencyHint))
if((h = XGetWMHints(dpy, c->win)) && (h->flags & XUrgencyHint) && c != sel)
{
c->flags |= UrgentFlag;
if(ishide(c, selscreen))
infobar_draw_taglist(c->screen);
tags[c->screen][c->tag].urgent = True;
infobar_draw_taglist(c->screen);
XFree(h);
}