chore: limit it to linux wayland

pull/1319/head
ShootingStarDragons 2 years ago
parent 7d95ac23ce
commit c893dfd102
  1. 8
      src/MainWindow.cpp

@ -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…
Cancel
Save