Do not set urgent on window if it is focused

This commit is contained in:
Julien Danjou 2008-03-18 11:14:59 +01:00
parent 279e83ba05
commit 08f1e90384
1 changed files with 1 additions and 1 deletions

View File

@ -659,7 +659,7 @@ client_updatewmhints(Client *c)
if((wmh = XGetWMHints(globalconf.display, c->win)))
{
if((c->isurgent = (wmh->flags & XUrgencyHint)))
if((c->isurgent = ((wmh->flags & XUrgencyHint) && globalconf.focus->client != c)))
widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS);
if((wmh->flags & StateHint) && wmh->initial_state == WithdrawnState)
{