Bug 489232

Summary: Switching Virtual Desktops in a way that makes panel float or de-float makes windows shown in Overview wiggle or even re-layout
Product: [Plasma] kwin Reporter: postix <postix>
Component: effects-overviewAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: nate, niccolo
Priority: NOR    
Version First Reported In: 6.1.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=489396
Latest Commit: Version Fixed/Implemented In: 6.2.0
Sentry Crash Report:
Attachments: Screen recording
Screenshot: Panel config

Description postix 2024-06-26 13:09:22 UTC
STEPS TO REPRODUCE
1. Default panel: Floating
2. Open some windows, maximize at least one if the windows
3. Open the overview effect
4. Switch between the virtual desktops (ctrl+meta+left/right or click into the VDs)

OBSERVED RESULT
The windows adjust their size and positions due to an invisible panel animation.
If the panel is not floating, the issue is not observable.

EXPECTED RESULT
The panel and it's setting doesn't play any role and the windows' geometries and positions keep being static.


SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.0
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1
Graphics Platform: Wayland
Comment 1 Nate Graham 2024-06-26 16:33:29 UTC
Can you attach a screen recording that shows the issue? I'm having trouble reproducing it.
Comment 2 postix 2024-06-26 17:01:55 UTC
Created attachment 171021 [details]
Screen recording

1) 3 non maximized windows + floating panel
2) OBS Studio maximized
Comment 3 postix 2024-06-26 17:03:03 UTC
Created attachment 171022 [details]
Screenshot: Panel config
Comment 4 postix 2024-06-26 17:05:47 UTC
With more windows (7 in total), they even get shuffled around. Looks funny though.
Comment 5 postix 2024-06-26 17:17:15 UTC
Can reproduce it also on a second Fedora 40 system. I've noticed also that the performance, switching VDs, is notable better when the panel is _not_ floating.
Comment 6 postix 2024-06-26 17:25:52 UTC
For reproducing, you need to have two adjacent VDs: 
a) One with a window, which touches the panel, i.e. the panel is not in a floating,
b) one with no window touching the panel, i.e. where the panel keeps floating
Comment 7 postix 2024-06-26 17:36:35 UTC
They move just a little bit in the recording above, but they can move a lot more or even completely shuffle, making it much more distracting.
Comment 8 Nate Graham 2024-06-26 20:43:43 UTC
Oh I see, thanks. Can reproduce.

Sounds like we should disable the float/defloat effect until you leave Overview. Would prevent this issue and likely improve performance whlie switching.
Comment 9 postix 2024-06-28 18:32:48 UTC
> Would prevent this issue and likely improve performance whlie switching.

I've noticed also a biiig performance penalty when switching into the new edit mode on 6.1.1: With the panel floating the animation notable stutters with my RX580 + Ryzen 5900X. Having the panel not float, it's absolutely smooth though.
Comment 10 postix 2024-06-28 18:33:30 UTC
* I mean when opening the new panel edit mode.
Comment 11 Nate Graham 2024-07-19 13:30:15 UTC
This appears to be fixed in currently git master, likely by the floating panel refactor work for Plasma 6.2.
Comment 12 postix 2024-07-19 13:45:14 UTC
\o/ thanks!