From 715e428179621c3d66d0fd73747b0c7e987e4bf4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Blin?=
 <sebastien.blin@savoirfairelinux.com>
Date: Sun, 8 Dec 2019 17:13:18 -0500
Subject: [PATCH] mainwindow: do not call activateWindow on Wayland

It's not supported by wayland and will stop the app

Gitlab: #515
Change-Id: I9f23b781243ec6b85e81121851a531c7e09721b9
---
 src/mainwindow.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 65d3c9d..4bc23f5 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -253,7 +253,10 @@ void MainWindow::showWindow()
     } else {
         showNormal();
     }
-    activateWindow();
+
+    if (QGuiApplication::platformName() != "wayland") {
+        activateWindow();
+    }
     raise();
 }
 
-- 
GitLab