updateXTime before sending a takeFocus message
old timestamps confuse clients BUG: 347153 REVIEW: 123639
This commit is contained in:
parent
e0c3b4eed3
commit
c2ba765820
1 changed files with 3 additions and 1 deletions
|
@ -1548,8 +1548,10 @@ void Client::takeFocus()
|
|||
m_client.focus();
|
||||
else
|
||||
demandAttention(false); // window cannot take input, at least withdraw urgency
|
||||
if (info->supportsProtocol(NET::TakeFocusProtocol))
|
||||
if (info->supportsProtocol(NET::TakeFocusProtocol)) {
|
||||
updateXTime();
|
||||
sendClientMessage(window(), atoms->wm_protocols, atoms->wm_take_focus);
|
||||
}
|
||||
workspace()->setShouldGetFocus(this);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue