withdraw _NET_WM_STATE_DEMANDS_ATTENTION from windows which are attempted t be focus'd but cannot

BUG: 232423
FIXED-IN: 4.9
REVIEW: 104620
icc-effect-5.14.5
Thomas Lübking 2012-04-16 17:27:53 +02:00
parent 3cbdca162a
commit 5d6613eb99
1 changed files with 2 additions and 0 deletions

View File

@ -1779,6 +1779,8 @@ void Client::takeFocus(allowed_t)
#endif
if (rules()->checkAcceptFocus(input))
XSetInputFocus(display(), window(), RevertToPointerRoot, xTime());
else
demandAttention(false); // window cannot take input, at least withdraw urgency
if (Ptakefocus)
sendClientMessage(window(), atoms->wm_protocols, atoms->wm_take_focus);
workspace()->setShouldGetFocus(this);