From 6607bd72f27cd7e18b09b95678f2de09ce2110ea Mon Sep 17 00:00:00 2001 From: Eike Hein Date: Fri, 12 May 2017 01:05:36 +0900 Subject: [PATCH] Use resourceClass as fallback for XWayland clients instead of resourceName. Summary: resourceClass is the more useful half of WM_CLASS. It's what modern X clients are supposed to set to a .desktop file name, which is closer to the semantics of appId than resourceName. Reviewers: #plasma, graesslin Subscribers: kwin, plasma-devel, #kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D5815 --- abstract_client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/abstract_client.cpp b/abstract_client.cpp index df3e84497e..72c68dcf65 100644 --- a/abstract_client.cpp +++ b/abstract_client.cpp @@ -700,7 +700,7 @@ void AbstractClient::setupWindowManagementInterface() w->setFullscreenable(isFullScreenable()); w->setIcon(icon()); auto updateAppId = [this, w] { - w->setAppId(QString::fromUtf8(m_desktopFileName.isEmpty() ? resourceName() : m_desktopFileName)); + w->setAppId(QString::fromUtf8(m_desktopFileName.isEmpty() ? resourceClass() : m_desktopFileName)); }; updateAppId(); w->setSkipTaskbar(skipTaskbar());