chore: limit it to linux wayland
This commit is contained in:
parent
7d95ac23ce
commit
c893dfd102
@ -363,9 +363,13 @@ MainWindow::event(QEvent *event)
|
||||
void
|
||||
MainWindow::mousePressEvent(QMouseEvent *event)
|
||||
{
|
||||
if (event->button() == Qt::LeftButton) {
|
||||
emit hideMenu();
|
||||
#if defined(Q_OS_LINUX)
|
||||
if (QGuiApplication::platformName() == "wayland") {
|
||||
if (event->button() == Qt::LeftButton) {
|
||||
emit hideMenu();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
return QQuickView::mousePressEvent(event);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user