wayland: Don't grab mouse or set window opacity

Not supported by the QPA and not needed for wayland anyway
This commit is contained in:
Sergio Martins
2020-10-15 16:26:18 +01:00
parent dd3116ae7f
commit bca21defa5
2 changed files with 19 additions and 9 deletions

View File

@@ -32,7 +32,7 @@
using namespace KDDockWidgets;
namespace KDDockWidgets {
///@brief Custom mouse grabber, as platforms like wayland don't support grabbing the mouse
///@brief Custom mouse grabber, for platforms that dont support grabbing the mouse
class FallbackMouseGrabber : public QObject /// clazy:exclude=missing-qobject-macro
{
public:
@@ -373,6 +373,9 @@ bool DragController::isInClientDrag() const
void DragController::grabMouseFor(QWidgetOrQuick *target)
{
if (isWayland())
return; // No grabbing supported on wayland
if (m_fallbackMouseGrabber) {
m_fallbackMouseGrabber->grabMouse(target);
} else {
@@ -382,6 +385,9 @@ void DragController::grabMouseFor(QWidgetOrQuick *target)
void DragController::releaseMouse(QWidgetOrQuick *target)
{
if (isWayland())
return; // No grabbing supported on wayland
if (m_fallbackMouseGrabber) {
m_fallbackMouseGrabber->releaseMouse();
} else {