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 e0c3b4eed3
commit c2ba765820

View file

@ -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);
}