[icon thumbnail] Request for preferred icon size

REVIEW: 127826

CCBUG: 362324

Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
This commit is contained in:
Anthony Fieroni 2016-05-20 18:59:23 +03:00
parent 1d81c83779
commit 3530cc39d0

View File

@ -242,7 +242,7 @@ void WindowThumbnail::iconToTexture(WindowTextureNode *textureNode)
{
QIcon icon;
if (KWindowSystem::self()->hasWId(m_winId)) {
icon = KWindowSystem::self()->icon(m_winId);
icon = KWindowSystem::self()->icon(m_winId, boundingRect().width(), boundingRect().height());
} else {
// fallback to plasma icon
icon = QIcon::fromTheme(QStringLiteral("plasma"));