From 6a1cadc0a75676f7f93c65eddbce8f65e3cdc117 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 13 Nov 2013 09:25:47 +0100 Subject: [PATCH] [kwin] update x time before trying to establish/release tabbox grab Failed with invalid time error when using kglobalaccel5. --- tabbox/tabbox.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tabbox/tabbox.cpp b/tabbox/tabbox.cpp index 62ac95997d..f2f4213b32 100644 --- a/tabbox/tabbox.cpp +++ b/tabbox/tabbox.cpp @@ -1586,6 +1586,7 @@ Client* TabBox::previousClientStatic(Client* c) const bool TabBox::establishTabBoxGrab() { + updateXTime(); if (!grabXKeyboard()) return false; // Don't try to establish a global mouse grab using XGrabPointer, as that would prevent @@ -1602,6 +1603,7 @@ bool TabBox::establishTabBoxGrab() void TabBox::removeTabBoxGrab() { + updateXTime(); ungrabXKeyboard(); assert(m_forcedGlobalMouseGrab); m_forcedGlobalMouseGrab = false;