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
This commit is contained in:
parent
3cbdca162a
commit
5d6613eb99
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue