summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/MainWindow.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp

index 5c92fb5b..3fedbdc0 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp
@@ -363,9 +363,13 @@ MainWindow::event(QEvent *event) void MainWindow::mousePressEvent(QMouseEvent *event) { - if (event->button() == Qt::LeftButton) { - emit hideMenu(); +#if defined(Q_OS_LINUX) + if (QGuiApplication::platformName() == "wayland") { + if (event->button() == Qt::LeftButton) { + emit hideMenu(); + } } +#endif return QQuickView::mousePressEvent(event); }