From d6cca178f7c7cd5bb4f2474519410b35ffd25720 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Mon, 19 Apr 2021 10:50:41 +0300 Subject: [PATCH] wayland: Pick better initial window class string With ksplash migrating to the layer-shell protocol, it no longer provides an app id. This means that the window class string will be different, e.g. "ksplashqml " instead of "ksplashqml ksplashqml", and some effects (login, etc) will stop working as expected. In order to keep effects working as before, this change adjusts the window class initialization in WaylandClient so both the resource class and the resource name are set to the executable file name. --- src/waylandclient.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/waylandclient.cpp b/src/waylandclient.cpp index b53e743ba1..686795f6fe 100644 --- a/src/waylandclient.cpp +++ b/src/waylandclient.cpp @@ -188,7 +188,8 @@ void WaylandClient::updateResourceName() { const QFileInfo fileInfo(surface()->client()->executablePath()); if (fileInfo.exists()) { - setResourceClass(fileInfo.fileName().toUtf8()); + const QByteArray executableFileName = fileInfo.fileName().toUtf8(); + setResourceClass(executableFileName, executableFileName); } }