diff --git a/processui/ProcessModel.cpp b/processui/ProcessModel.cpp --- a/processui/ProcessModel.cpp +++ b/processui/ProcessModel.cpp @@ -527,8 +527,10 @@ return; //We do not have a record of this window and this is not a new window if(properties == NET::WMIcon) { - if(w) - w->icon = KWindowSystem::icon(wid, HEADING_X_ICON_SIZE, HEADING_X_ICON_SIZE, true); + if(w) { + w->icon = KWindowSystem::icon(wid, HEADING_X_ICON_SIZE * qApp->devicePixelRatio(), HEADING_X_ICON_SIZE * qApp->devicePixelRatio(), true); + w->icon.setDevicePixelRatio(qApp->devicePixelRatio()); + } return; } /* Get PID for window */ @@ -550,8 +552,10 @@ mWIdToWindowInfo.insert(wid, w); } - if(w && (properties & NET::WMIcon)) - w->icon = KWindowSystem::icon(wid, HEADING_X_ICON_SIZE, HEADING_X_ICON_SIZE, true); + if(w && (properties & NET::WMIcon)) { + w->icon = KWindowSystem::icon(wid, HEADING_X_ICON_SIZE * qApp->devicePixelRatio(), HEADING_X_ICON_SIZE * qApp->devicePixelRatio(), true); + w->icon.setDevicePixelRatio(qApp->devicePixelRatio()); + } if(properties & NET::WMVisibleName && info.visibleName()) w->name = QString::fromUtf8(info.visibleName()); else if(properties & NET::WMName)