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

Failed with invalid time error when using kglobalaccel5.
icc-effect-5.14.5
Martin Gräßlin 2013-11-13 09:25:47 +01:00
parent 4edf01bd62
commit 6a1cadc0a7
1 changed files with 2 additions and 0 deletions

View File

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