only invalidate cache if client is urgent

This commit is contained in:
Julien Danjou 2008-01-07 19:00:17 +01:00
parent 7a2b851a03
commit 6483b36389
2 changed files with 2 additions and 2 deletions

View File

@ -615,7 +615,8 @@ client_updatewmhints(Client *c)
if((wmh = XGetWMHints(globalconf.display, c->win)))
{
c->isurgent = (wmh->flags & XUrgencyHint);
if((c->isurgent = (wmh->flags & XUrgencyHint)))
widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS);
if((wmh->flags & StateHint) && wmh->initial_state == WithdrawnState)
c->skip = True;
XFree(wmh);

View File

@ -376,7 +376,6 @@ handle_event_propertynotify(XEvent * e)
break;
case XA_WM_HINTS:
client_updatewmhints(c);
widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS);
break;
}
if(ev->atom == XA_WM_NAME || ev->atom == XInternAtom(globalconf.display, "_NET_WM_NAME", False))