Bug 460266 - Same scaling factor on X11 and on Wayland result in different dock/panel size
Summary: Same scaling factor on X11 and on Wayland result in different dock/panel size
Status: REPORTED
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: git (master)
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-11 19:28 UTC by Dmitrii Chermnykh
Modified: 2022-10-11 19:28 UTC (History)
1 user (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 Dmitrii Chermnykh 2022-10-11 19:28:11 UTC
SUMMARY

When item size of a panel/dock is configured as absolute size in px the behavior is diffirent:
- On X11: the pixels are treated as physical pixels
- On Wayland: the pixels are treated as logical pixels and then scaled with the rest of the system

STEPS TO REPRODUCE
1. Set a fractional scaling factor in plasma settings
2. Create a panel in latte and set its size in logical pixel
3. Check the differences between sizes in Wayland and X11 

OBSERVED RESULT
The size of the panel/dock is different

EXPECTED RESULT
The sizes are the same

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.26.0
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6+kde+r177

ADDITIONAL INFORMATION
An option to use absolute pixels on wayland may be a solution. I think it's also better to scale dock on X11 with the rest of the system.