updateXTime before sending a takeFocus message

old timestamps confuse clients

BUG: 347153
REVIEW: 123639
icc-effect-5.14.5
Thomas Lübking 2015-05-05 12:23:45 +02:00
parent 0da58680fc
commit 77047aa555
1 changed files with 3 additions and 1 deletions

View File

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