Bug 514474

Summary: Clearing overview's filter add filtered windows with the wrong scale
Product: [Plasma] kwin Reporter: Jérôme L <jerome.4a4c+kde>
Component: effects-overviewAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: minor CC: nate
Priority: NOR    
Version First Reported In: 6.5.4   
Target Milestone: ---   
Platform: CachyOS   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: observed result, filter windows with ' clear filter, the windows animates when reappearing, dolphin is bigger than expected
expected result, the windows doesn't animate when reappearing

Description Jérôme L 2026-01-12 00:34:42 UTC
Created attachment 188426 [details]
observed result, filter windows with ' clear filter, the windows animates when reappearing, dolphin is bigger than expected

SUMMARY
In overview, filtered windows reappear with shuffled scale and position, forcing an animation.

STEPS TO REPRODUCE
1. Open several windows
2. Filter windows (the issue is more impressive when all windows are filtered)
3. Clear the filter

OBSERVED RESULT
Windows move a lot each time they reappear.
One of the window is always with maximum scale, as if it didn't account for the other windows.

EXPECTED RESULT
Less or no move and scale animations when the filter is cleared.

SOFTWARE/OS VERSIONS
Linux: 6.18.3
KDE Plasma Version: 6.5.4
KDE Frameworks Version: 6.21.0
Qt Version: 6.10.1
Wayland
Built kwin at commit d3ac0c4ee78eb124a569ba8862bc18b211f9b012

ADDITIONAL INFORMATION
Comment 1 Jérôme L 2026-01-12 00:43:10 UTC
Created attachment 188427 [details]
expected result, the windows doesn't animate when reappearing

It looks better without expoLayout.forceLayout(); in onObjectAdded (https://invent.kde.org/plasma/kwin/-/blob/master/src/plugins/private/qml/WindowHeap.qml:159)

However, the new windows now appear at the same place, which doesn't look that good.
N.B. I don't know what forceLayout is for, removing it may break something else.