Skip to content
Snippets Groups Projects
Commit c893dfd1 authored by ShootingStarDragons's avatar ShootingStarDragons
Browse files

chore: limit it to linux wayland

parent 7d95ac23
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment