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