Bug 485303

Summary: Some desktops in multi-row/multi-column Pager cannot be clicked with thin floating panels
Product: [Plasma] plasmashell Reporter: Thomas Dickson <thom-dickson>
Component: PanelAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: hein, nate, niccolo.venerandi, notmart
Priority: NOR    
Version: 6.0.3   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Screenshot of pager on a floating panel, the mouse is over the 7th desktop, but the 4th one is selected.

Description Thomas Dickson 2024-04-10 05:09:45 UTC
Created attachment 168328 [details]
Screenshot of pager on a floating panel, the mouse is over the 7th desktop, but the 4th one is selected.

(apologies if this is filed under the wrong component)

SUMMARY
The with a 3x3 of virtual desktops, the pager cannot select the upper or lower six.

STEPS TO REPRODUCE
1. Add the virtual desktop pager to a floating panel
2. Add 9 virtual desktops in a 3x3 grid
3. Attempt to select the upper or lower three desktops

OBSERVED RESULT
The mouse can only select the middle three desktops (4,5,6), despite the mouse hovering over the rows above or below it.

EXPECTED RESULT
The selected desktop should be the one that the mouse is hovering over.

SOFTWARE/OS VERSIONS
Linux: 6.5.0-27
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.3
Comment 1 Thomas Dickson 2024-04-10 05:11:09 UTC
This bug also still occurs when the floating panel is in the maximised window mode.
Comment 2 Marco Martin 2024-04-10 15:34:50 UTC
does this happens only when the pager is configured to have multiple lines?
Comment 3 Nate Graham 2024-04-10 15:52:33 UTC
Can reproduce with the following settings:
- Panel with thickness of 34px or less
- 3 or more rows of virtual desktops

It affects horizontal or vertical panels, and starts working as expected if I raise the panel thickness to 36 or higher.

Seems like floating panel input redirection may be inappropriately kicking in here or something?
Comment 4 Bug Janitor Service 2024-12-13 12:27:47 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2669
Comment 5 Niccolò Venerandi 2024-12-19 09:39:11 UTC
Git commit cdf2138fe19ad260c83b979a3df796006d219623 by Niccolò Venerandi.
Committed on 19/12/2024 at 09:38.
Pushed by niccolove into branch 'master'.

Align panel containment's spacingAtMinSize value with view

Previously the containment value would use round instead of floor,
and it would use the entire window size (including floating margins)
instead of just the panel thickness. Instead, they should always use
the same value.

M  +1    -1    desktoppackage/contents/views/Panel.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/cdf2138fe19ad260c83b979a3df796006d219623