From e84e2b0aaa7e97c578fd5eede4e4201ef0e220aa Mon Sep 17 00:00:00 2001 From: ShootingStarDragons Date: Sat, 28 Jan 2023 17:10:45 +0800 Subject: [PATCH] chore: remove button check --- src/MainWindow.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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);