Bug 484761

Summary: Floating panel switches to anchored style too early when a window is near
Product: [Plasma] plasmashell Reporter: Zenurik <alisson.bwt>
Component: PanelAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: fanzhuyifan, niccolo.venerandi
Priority: NOR    
Version First Reported In: 6.0.3   
Target Milestone: 1.0   
Platform: Solus   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Panel anchoring/dodging demo

Description Zenurik 2024-03-30 14:56:19 UTC
Created attachment 167946 [details]
Panel anchoring/dodging demo

SUMMARY
Floating panels are changing to their "anchored" style way too early when a window gets close (about 20px). This happens with the default "Breeze" decoration, no matter the window type (Qt or GTK, XWayland or native) or if it has a shadow or not.

STEPS TO REPRODUCE
1. Add a floating panel to the desktop.
2. Open a new Dolphin window and start dragging it in the panel's direction.

OBSERVED RESULT
When reaching a certain distance (about 20px), the panel will be anchored. (See attachment)

EXPECTED RESULT
Panel should be anchored at a closer, more reasonable, distance or only when actually being touched by a window.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.6.22-281.current (64-bit)
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.3

ADDITIONAL INFORMATION
- Default app style and window decorations are used.
- This makes it virtually impossible to have a floating panel with a tiling script that has small gaps.
- Using the "Dodge windows" visibility, the distance at which the effect is triggered is much more reasonable (Also visible on the attached video).
Comment 1 fanzhuyifan 2024-03-30 18:17:37 UTC

*** This bug has been marked as a duplicate of bug 482468 ***