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