Do not set urgent on window if it is focused
This commit is contained in:
parent
279e83ba05
commit
08f1e90384
2
client.c
2
client.c
|
@ -659,7 +659,7 @@ client_updatewmhints(Client *c)
|
||||||
|
|
||||||
if((wmh = XGetWMHints(globalconf.display, c->win)))
|
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);
|
widget_invalidate_cache(c->screen, WIDGET_CACHE_CLIENTS);
|
||||||
if((wmh->flags & StateHint) && wmh->initial_state == WithdrawnState)
|
if((wmh->flags & StateHint) && wmh->initial_state == WithdrawnState)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue