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
This commit is contained in:
Eike Hein 2017-05-12 01:05:36 +09:00
parent 6d1b61c1a7
commit 6607bd72f2

View file

@ -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());