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:
parent
6d1b61c1a7
commit
6607bd72f2
1 changed files with 1 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue