From c2ba7658208ff50eed350cfa6f4dd44f2db77a81 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 a6fbf3ea92..d38388747d 100644 --- a/client.cpp +++ b/client.cpp @@ -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); }