[icon thumbnail] Request for preferred icon size
REVIEW: 127826 CCBUG: 362324 Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
This commit is contained in:
parent
1d81c83779
commit
3530cc39d0
@ -242,7 +242,7 @@ void WindowThumbnail::iconToTexture(WindowTextureNode *textureNode)
|
|||||||
{
|
{
|
||||||
QIcon icon;
|
QIcon icon;
|
||||||
if (KWindowSystem::self()->hasWId(m_winId)) {
|
if (KWindowSystem::self()->hasWId(m_winId)) {
|
||||||
icon = KWindowSystem::self()->icon(m_winId);
|
icon = KWindowSystem::self()->icon(m_winId, boundingRect().width(), boundingRect().height());
|
||||||
} else {
|
} else {
|
||||||
// fallback to plasma icon
|
// fallback to plasma icon
|
||||||
icon = QIcon::fromTheme(QStringLiteral("plasma"));
|
icon = QIcon::fromTheme(QStringLiteral("plasma"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user