Bug 455372 - Windows inappropriately snap to edges of non-maximized panels
Summary: Windows inappropriately snap to edges of non-maximized panels
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Panel (show other bugs)
Version: 5.24.5
Platform: Arch Linux Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-16 00:26 UTC by Jeremi Campagna
Modified: 2024-08-28 13:10 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremi Campagna 2022-06-16 00:26:29 UTC
SUMMARY
***
When using a shrunken taskbar panel, the windows snap to the taskbar edges no matter their distance from it. Windows can snap to the edge of the panel from a different screen.
***


STEPS TO REPRODUCE
1. Shrink width or height (if using the taskbar on the left or right hand side of the screen) of the taskbar.
2. Spawn any application window.
3. Move the window around the same axis of the taskbar's edges.

OBSERVED RESULT
Windows snap to the taskbar's edges that are exposed by shrinking it no matter how far away they are from the taskbar.

EXPECTED RESULT
The windows shouldn't snap to an edge they aren't close to colliding with.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4
Kernel Version: 5.17.9-zen1-1-zen (64-bit)
Graphics Platform: Wayland
Processors: 16 × Intel® Core™ i7-10700K CPU @ 3.80GHz
Memory: 31.3 Gio of RAM
Graphics Processor: AMD Radeon RX Vega

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2022-06-16 19:02:40 UTC
What do you mean by "shrunken"? Is the panel small, or hidden, or something else? Can you maybe attach a screen recording that shows the problematic behavior happening?
Comment 2 Jeremi Campagna 2022-06-16 19:45:18 UTC
(In reply to Nate Graham from comment #1)
> What do you mean by "shrunken"? Is the panel small, or hidden, or something
> else? Can you maybe attach a screen recording that shows the problematic
> behavior happening?

Shrunken as it's not covering the entire screen's edge. Think of like a MacOS dock at the bottom of the screen or on the left hand side in my case. I guess you could say the panel is small.
Comment 3 Jeremi Campagna 2022-06-16 20:24:49 UTC
Here is a Google Drive link to a video showing the issue. Pardon the poor clarity, OBS didn't want to work. I can attempt to make another video with OBS once I'll have sorted it out.

https://drive.google.com/file/d/1JvnHq-wslL5oFwrS4S6c7CcTV2NWB3SO/view?usp=sharing
Comment 4 Jeremi Campagna 2022-06-17 14:24:22 UTC
The issue is still present in 5.25 and framework 5.95
Comment 5 Nate Graham 2022-06-17 17:38:38 UTC
Thanks, that was helpful. Can confirm on git master even with the panel refactor.
Comment 6 Jeremi Campagna 2022-12-23 05:23:30 UTC
This is still happening in 5.26.
Just to keep the tracker alive.
Comment 7 Niccolò Venerandi 2024-08-28 13:10:55 UTC
We disabled snapping for panels entirely :D