updateXTime before sending a takeFocus message
old timestamps confuse clients BUG: 347153 REVIEW: 123639
This commit is contained in:
parent
0da58680fc
commit
77047aa555
1 changed files with 3 additions and 1 deletions
|
@ -1435,8 +1435,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