diff options
author | ShootingStarDragons <ShootingStarDragons@protonmail.com> | 2023-01-28 17:10:45 +0800 |
---|---|---|
committer | ShootingStarDragons <ShootingStarDragons@protonmail.com> | 2023-01-28 17:10:45 +0800 |
commit | e84e2b0aaa7e97c578fd5eede4e4201ef0e220aa (patch) | |
tree | bf2a2cd6a5493fda15c016f0a55ddd317df3e8bd /src | |
parent | chore: limit it to linux wayland (diff) | |
download | nheko-e84e2b0aaa7e97c578fd5eede4e4201ef0e220aa.tar.xz |
chore: remove button check
Diffstat (limited to 'src')
-rw-r--r-- | src/MainWindow.cpp | 4 |
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); |