Use new PlasmaWindowInterface::setIcon

Summary: This allows to pass also Xwayland icons to the task manager.

Reviewers: #kwin, #plasma_on_wayland, hein

Subscribers: plasma-devel, kwin

Tags: #plasma_on_wayland, #kwin

Differential Revision: https://phabricator.kde.org/D3050
icc-effect-5.14.5
Martin Gräßlin 2016-10-13 13:57:34 +02:00
parent f41b610608
commit 05d21b6b25
1 changed files with 2 additions and 3 deletions

View File

@ -673,7 +673,7 @@ void AbstractClient::setupWindowManagementInterface()
w->setMaximizeable(isMaximizable());
w->setMinimizeable(isMinimizable());
w->setFullscreenable(isFullScreenable());
w->setThemedIconName(icon().name().isEmpty() ? QStringLiteral("xorg") : icon().name());
w->setIcon(icon());
w->setAppId(QString::fromUtf8(resourceName()));
w->setSkipTaskbar(skipTaskbar());
w->setShadeable(isShadeable());
@ -713,8 +713,7 @@ void AbstractClient::setupWindowManagementInterface()
connect(this, &AbstractClient::demandsAttentionChanged, w, [w, this] { w->setDemandsAttention(isDemandingAttention()); });
connect(this, &AbstractClient::iconChanged, w,
[w, this] {
const QIcon i = icon();
w->setThemedIconName(i.name().isEmpty() ? QStringLiteral("xorg") : i.name());
w->setIcon(icon());
}
);
connect(this, &AbstractClient::windowClassChanged, w,