Commit 8409043d authored by Fushan Wen's avatar Fushan Wen 💬 Committed by Nate Graham
Browse files

taskmanager: Avoid flickering when scrolling in task tooltips

Using `QTimer::singleShot` to call `Backend::updateWindowHighlight` is
effective to avoid unnecessary window highlight updates when scrolling
in task tooltips.

BUG: 446672
parent 45e545df
......@@ -604,7 +604,8 @@ void Backend::windowsHovered(const QVariant &_winIds, bool hovered)
m_windowsToHighlight = _winIds.toStringList();
}
updateWindowHighlight();
// Avoid flickering when scrolling in the tooltip
QTimer::singleShot(0, this, &Backend::updateWindowHighlight);
}
void Backend::updateWindowHighlight()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment