From 77047aa555c8ed58e8fc21c3f573b42d0c05a59b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Tue, 5 May 2015 12:23:45 +0200 Subject: [PATCH] updateXTime before sending a takeFocus message old timestamps confuse clients BUG: 347153 REVIEW: 123639 --- client.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client.cpp b/client.cpp index a15506cd01..b510cd3cbc 100644 --- a/client.cpp +++ b/client.cpp @@ -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); }