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
icc-effect-5.14.5
Eike Hein 2017-05-12 01:05:36 +09:00
parent 6d1b61c1a7
commit 6607bd72f2
1 changed files with 1 additions and 1 deletions

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