Gui: fix skip wayland grabMouse since isn't supported
This commit is contained in:
@@ -2013,7 +2013,10 @@ bool OverlayManager::eventFilter(QObject* o, QEvent* ev)
|
||||
hitWidget->setFocus();
|
||||
d->_trackingWidget = hitWidget;
|
||||
d->_trackingOverlay = activeTabWidget;
|
||||
d->_trackingOverlay->grabMouse();
|
||||
// Wayland doesn't allow mouse grab
|
||||
if (QGuiApplication::platformName() != QLatin1String("wayland")) {
|
||||
d->_trackingOverlay->grabMouse();
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -2038,7 +2041,10 @@ public:
|
||||
~MouseGrabberGuard()
|
||||
{
|
||||
if (_grabber) {
|
||||
_grabber->grabMouse();
|
||||
// Wayland doesn't allow mouse grab
|
||||
if (QGuiApplication::platformName() != QLatin1String("wayland")) {
|
||||
_grabber->grabMouse();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user