summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorShootingStarDragons <ShootingStarDragons@protonmail.com>2023-01-28 17:10:45 +0800
committerShootingStarDragons <ShootingStarDragons@protonmail.com>2023-01-28 17:10:45 +0800
commite84e2b0aaa7e97c578fd5eede4e4201ef0e220aa (patch)
treebf2a2cd6a5493fda15c016f0a55ddd317df3e8bd /src
parentchore: limit it to linux wayland (diff)
downloadnheko-e84e2b0aaa7e97c578fd5eede4e4201ef0e220aa.tar.xz
chore: remove button check
Diffstat (limited to 'src')
-rw-r--r--src/MainWindow.cpp4
1 files changed, 1 insertions, 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);