Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display scale not matching specified value #8057

Closed
thekakkun opened this issue Mar 10, 2024 · 2 comments
Closed

Display scale not matching specified value #8057

thekakkun opened this issue Mar 10, 2024 · 2 comments
Labels
bug Not working as intended

Comments

@thekakkun
Copy link

thekakkun commented Mar 10, 2024

Sway Version:
1.9

Configuration File:

Description:

When a second monitor is connected, I set the display scale to 1.6711111

swaymsg output eDP-1 scale 1.6711111

However, checking the output settings gives me:

swaymsg -t get_outputs
Output eDP-1 'BOE 0x0BCA Unknown'
  Current mode: 2256x1504 @ 59.999 Hz
  Power: on
  Position: 0,0
  Scale factor: 1.675000
  Scale filter: linear
  Subpixel hinting: unknown
  ...

Which means, while I expect my screen to be 1350x900, it ends up being 1346.8x897.9.
My monitor (positioned at 1350,0) isn't actually there, and the slight mismatch causes an issue where my mouse cursor gets 'stuck' between the two displays.

@thekakkun thekakkun added the bug Not working as intended label Mar 10, 2024
@emersion
Copy link
Member

This is by design. Sway rounds to the nearest scale representable by the fractional-scale protocol.

@thekakkun
Copy link
Author

Thanks, just read up on it. So if I understand correctly, it seems like the denominator needs to be 120.

emersion added a commit to emersion/sway that referenced this issue Mar 11, 2024
fractional-scale only supports representing fractions of 120.

References: swaywm#8057
kennylevinsen pushed a commit that referenced this issue Mar 14, 2024
fractional-scale only supports representing fractions of 120.

References: #8057
frosklis pushed a commit to frosklis/sway-frosklis that referenced this issue Mar 31, 2024
fractional-scale only supports representing fractions of 120.

References: swaywm#8057
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended
Development

No branches or pull requests

2 participants