[kwin] update x time before trying to establish/release tabbox grab
Failed with invalid time error when using kglobalaccel5.
This commit is contained in:
parent
4edf01bd62
commit
6a1cadc0a7
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue