diff --git a/libtaskmanager/xwindowtasksmodel.cpp b/libtaskmanager/xwindowtasksmodel.cpp --- a/libtaskmanager/xwindowtasksmodel.cpp +++ b/libtaskmanager/xwindowtasksmodel.cpp @@ -324,11 +324,16 @@ bool wipeAppDataCache = false; QVector changedRoles; - if (properties & (NET::WMName | NET::WMVisibleName | NET::WMPid) + if (properties & (NET::WMPid) || properties2 & (NET::WM2DesktopFileName | NET::WM2WindowClass)) { wipeInfoCache = true; wipeAppDataCache = true; - changedRoles << Qt::DisplayRole << Qt::DecorationRole << AppId << AppName << GenericName << LauncherUrl << AppPid; + changedRoles << Qt::DecorationRole << AppId << AppName << GenericName << LauncherUrl << AppPid; + } + + if (properties & (NET::WMName | NET::WMVisibleName)) { + changedRoles << Qt::DisplayRole; + wipeInfoCache = true; } if ((properties & NET::WMIcon) && usingFallbackIcon.contains(window)) {