[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:
Martin Gräßlin 2015-08-24 11:44:05 +02:00
parent 304ac3ac84
commit f7925c586e

View file

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