Skip to content

Output scaling causes 1px gaps / slightly wrong resolution in native apps #787

@LeaPhant

Description

@LeaPhant

Using an output scale (no matter if integer or fractional) causes gaps on the sides of windows and between parts of the windows where the wallpaper shows through. These gaps don't show up on screenshots taken with jay screenshot but they're visible irl:

Additionally it seems (native Wayland) clients see a slightly wrong resolution when scaling is used, even while fullscreened:

mpv
3839x2159
Image
Minecraft
(system glfw)
3839x2160
Image
Testufo
(Zen Browser)
3839x2160
Image

It doesn't seem to cause any obvious scaling artifacts but it might hint at the underlying issue.


  • jay version: 1.11.0 (150ead21272754e454e44195bffcc6635413cda1)
  • jay config used in this testing:
[[outputs]]
match.connector = "DP-1"
mode = { width = 3840, height = 2160, refresh-rate = 239.99 }
scale = 1.35

[theme]
border-width = 0
bg-color = "#ff0000"

[shortcuts]
logo-Return = { type = "exec", exec = "ghostty" }
logo-d = { type = "exec", exec = "bemenu-run" }

logo-f = "toggle-fullscreen"
logo-shift-q = "close"
logo-space = "toggle-floating"
logo-shift-Left = "move-left"
logo-shift-Right = "move-right"

ctrl-alt-F1 = { type = "switch-to-vt", num = 1 }
ctrl-alt-F2 = { type = "switch-to-vt", num = 2 }

logo-shift-e = "quit"
logo-shift-r = "reload-config-toml"

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions