Skip to content

Conversation

@afiretruck
Copy link

@afiretruck afiretruck commented Jan 7, 2026

One of my monitors has a resolution of 3840 x 2560. I have this set up with a scaling factor of 1.6x to achieve a comfortable widget size akin to that of a 30" 4k display at 1.5x scale. Unfortunately the wl_fixed type stores 1.6 as 1.6034somethingsomething (I can't remember the exact number). This results in an inaccurate scaled resolution (an additional 3 or so pixels in each dimension) on my funky monitor.

The fix is to replace the wl_fixed typed with double in the wayland display server.

I'm not sure if there's a better solution to this problem. Please advise if there is one - I'd be happy to implement it if so.

@afiretruck afiretruck marked this pull request as ready for review January 8, 2026 11:23
@afiretruck afiretruck changed the title WIP - use double type for storing the display scaling factor in Wayland Use double type for storing the display scaling factor in Wayland Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant