mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +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
|
void
|
||||||
MainWindow::mousePressEvent(QMouseEvent *event)
|
MainWindow::mousePressEvent(QMouseEvent *event)
|
||||||
{
|
{
|
||||||
|
#if defined(Q_OS_LINUX)
|
||||||
|
if (QGuiApplication::platformName() == "wayland") {
|
||||||
if (event->button() == Qt::LeftButton) {
|
if (event->button() == Qt::LeftButton) {
|
||||||
emit hideMenu();
|
emit hideMenu();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
return QQuickView::mousePressEvent(event);
|
return QQuickView::mousePressEvent(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue