[kwin] update x time before trying to establish/release tabbox grab

Failed with invalid time error when using kglobalaccel5.
This commit is contained in:
Martin Gräßlin 2013-11-13 09:25:47 +01:00
parent 4edf01bd62
commit 6a1cadc0a7

View file

@ -1586,6 +1586,7 @@ Client* TabBox::previousClientStatic(Client* c) const
bool TabBox::establishTabBoxGrab() bool TabBox::establishTabBoxGrab()
{ {
updateXTime();
if (!grabXKeyboard()) if (!grabXKeyboard())
return false; return false;
// Don't try to establish a global mouse grab using XGrabPointer, as that would prevent // 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() void TabBox::removeTabBoxGrab()
{ {
updateXTime();
ungrabXKeyboard(); ungrabXKeyboard();
assert(m_forcedGlobalMouseGrab); assert(m_forcedGlobalMouseGrab);
m_forcedGlobalMouseGrab = false; m_forcedGlobalMouseGrab = false;