diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 3fedbdc0..8c2b4c35 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -365,9 +365,7 @@ MainWindow::mousePressEvent(QMouseEvent *event) { #if defined(Q_OS_LINUX) if (QGuiApplication::platformName() == "wayland") { - if (event->button() == Qt::LeftButton) { - emit hideMenu(); - } + emit hideMenu(); } #endif return QQuickView::mousePressEvent(event);