[tabbox] Support wayland in establish/remove TabBoxGrab
We cannot grab keyboard/mouse through X means, so don't even try, but mark as grabbed. With this change the TabBox shows on Wayland.
This commit is contained in:
parent
304ac3ac84
commit
f7925c586e
1 changed files with 8 additions and 0 deletions
|
@ -1613,6 +1613,10 @@ Client* TabBox::previousClientStatic(Client* c) const
|
|||
|
||||
bool TabBox::establishTabBoxGrab()
|
||||
{
|
||||
if (kwinApp()->shouldUseWaylandForCompositing()) {
|
||||
m_forcedGlobalMouseGrab = true;
|
||||
return true;
|
||||
}
|
||||
updateXTime();
|
||||
if (!grabXKeyboard())
|
||||
return false;
|
||||
|
@ -1630,6 +1634,10 @@ bool TabBox::establishTabBoxGrab()
|
|||
|
||||
void TabBox::removeTabBoxGrab()
|
||||
{
|
||||
if (kwinApp()->shouldUseWaylandForCompositing()) {
|
||||
m_forcedGlobalMouseGrab = false;
|
||||
return;
|
||||
}
|
||||
updateXTime();
|
||||
ungrabXKeyboard();
|
||||
assert(m_forcedGlobalMouseGrab);
|
||||
|
|
Loading…
Reference in a new issue