mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 12:38:48 +03:00
chore: remove button check
This commit is contained in:
parent
c893dfd102
commit
e84e2b0aaa
1 changed files with 1 additions and 3 deletions
|
@ -365,9 +365,7 @@ MainWindow::mousePressEvent(QMouseEvent *event)
|
||||||
{
|
{
|
||||||
#if defined(Q_OS_LINUX)
|
#if defined(Q_OS_LINUX)
|
||||||
if (QGuiApplication::platformName() == "wayland") {
|
if (QGuiApplication::platformName() == "wayland") {
|
||||||
if (event->button() == Qt::LeftButton) {
|
emit hideMenu();
|
||||||
emit hideMenu();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
return QQuickView::mousePressEvent(event);
|
return QQuickView::mousePressEvent(event);
|
||||||
|
|
Loading…
Reference in a new issue