diff --git a/plugins/application-tray/fdoselectionmanager.cpp b/plugins/application-tray/fdoselectionmanager.cpp index ae504f336..2eabcd43c 100644 --- a/plugins/application-tray/fdoselectionmanager.cpp +++ b/plugins/application-tray/fdoselectionmanager.cpp @@ -154,6 +154,10 @@ bool FdoSelectionManager::nativeEventFilter(const QByteArray &eventType, void *m } } else if (responseType == m_damageEventBase + XCB_DAMAGE_NOTIFY) { const auto damagedWId = reinterpret_cast(ev)->drawable; + const xcb_damage_damage_t damageId = m_damageWatches.value(damagedWId); + if (damageId) { + xcb_damage_subtract(Util::instance()->getX11Connection(), damageId, XCB_NONE, XCB_NONE); + } m_trayManager->notifyIconChanged(damagedWId); } else if (responseType == XCB_CONFIGURE_REQUEST) { // const auto event = reinterpret_cast(ev);