mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
only invalidate cache if client is urgent
This commit is contained in:
parent
7a2b851a03
commit
6483b36389
2 changed files with 2 additions and 2 deletions
3
client.c
3
client.c
|
@ -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);
|
||||
|
|
1
event.c
1
event.c
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue