updateXTime before sending a takeFocus message

old timestamps confuse clients

BUG: 347153
REVIEW: 123639
This commit is contained in:
Thomas Lübking 2015-05-05 12:23:45 +02:00
parent 0da58680fc
commit 77047aa555

View file

@ -1435,8 +1435,10 @@ void Client::takeFocus()
m_client.focus(); m_client.focus();
else else
demandAttention(false); // window cannot take input, at least withdraw urgency 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); sendClientMessage(window(), atoms->wm_protocols, atoms->wm_take_focus);
}
workspace()->setShouldGetFocus(this); workspace()->setShouldGetFocus(this);
} }