Skip to content

Consider cherry-picking 1cf0520454f8f55256b7f6cdfeefa8360a5842c7

Description:

Firefox (and other GTK3 apps) get wrong screen information in presence of fractional scaling. Sway and Kwin are at least affected, haven't checked Mutter because it doesn't enable fractional scaling by default, but I suspect it's affected as well.

Additional info:

Steps to reproduce:

On KDE Plasma Wayland, make sure to have fractional scaling (e.g., 1.5x), open Firefox terminal and run screen.width.

In my configuration the right answer should be 2560 but is 1920. This causes menus to be cropped too soon for example.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information