In a log from someone talking about high CPU we can see get multiple X
events for the same window as multiple events, but directly next to each
other. This causes the TaskManager to process changes multiple times
instead of just once which is a waste.
I can see this switching tabs in Firefox it gives me the icon updatingAn example is just pressing "enter" in konsole, which will pointlessly
twice. Ideally we only want to have one change go through the modelupdate the title.
This class sits between KWindowSystem and XWindowTasksModelauses problems for expensive app lookup and also QML performs text layouts immediately so any text changes cause quite large CPU usage if done more than 60fps; especially a task text resizing
transparently buffercould result in resizing the changesentire panel.
I'm not super attached to the idea of adding hacks like this, so this is
as much a RFC as anything. (it's not the root cause of the issue in the
bug report)Something not relevant in kwin that also monitors these rolls.
Also the delay could probably be 0, because that will at least mean we
read all the pending window system events before proceeding which is alThis class sits between KWindowSystem and XWindowTasksModel
I really wanttransparently buffering the changes.
CCBUG: 378010
BUG: 365317