Bug 483623

Summary: Uneven spacing between desktops when fractionally scaled
Product: [Plasma] plasmashell Reporter: ectospore
Component: Pager widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: hein, mobile.harvey, nate
Priority: NOR Keywords: qt6
Version First Reported In: 6.0.2   
Target Milestone: 1.0   
Platform: NixOS   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Unevenly spaced desktop previews

Description ectospore 2024-03-15 05:21:50 UTC
Created attachment 167228 [details]
Unevenly spaced desktop previews

SUMMARY
Desktop previews in the pager widget sometimes have uneven spacing when fractional scaling is used.

STEPS TO REPRODUCE
1. Set display scale to a non integral value (tested 125% and 150%)
2. Adjust panel size

OBSERVED RESULT
Sometimes desktop previews are spaced unevenly.

EXPECTED RESULT
They should have consistent spacing between them.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.6.21
(available in About System)
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
Comment 1 ectospore 2024-03-15 05:41:30 UTC
PS: This happens on both X11 and Wayland sessions.
Comment 2 Nick 2024-03-21 21:18:42 UTC
Subtle, but I can duplicate this on Neon / Wayland / Intel graphics with scaling at 125% and a panel height of 38px. I think this could be a related to 483338 which relates to pixel rounding errors. Would be good to get this confirmed by a dev who knows more than me! Thanks, Nick.