Skip to content

fix(lockscreen): render at the output scale - #40

Open
perlowja wants to merge 1 commit into
singularityos-lab:mainfrom
perlowja:pr/lockscreen-output-scale-20261014
Open

perlowja wants to merge 1 commit into
singularityos-lab:mainfrom
perlowja:pr/lockscreen-output-scale-20261014

Conversation

@perlowja

Copy link
Copy Markdown
Contributor

The lock client drew at the logical size and let the compositor upscale it, so
the clock and unlock card were blurry on scaled outputs. Listen for the
wl_output scale, allocate the buffer in physical pixels and set the buffer
scale. Verified: builds, tests unchanged; the same change is in our shipped
lockscreen, compared pixel-for-pixel against the greeter at 1x and 2x.
AI assistance: disclosed

The lock client drew its buffer at the logical surface size and left the
compositor to upscale it, so on a scaled output the clock and unlock card were
blurry. Listen for the wl_output scale, allocate the buffer in physical pixels,
scale cairo so the drawing stays in logical units, and set the buffer scale.

Assisted-by: Claude Code:claude-opus-5-5
AI-Scope: added a wl_output scale listener and physical-pixel buffer allocation to the session-lock client in lock_main.c.
@perlowja

Copy link
Copy Markdown
Contributor Author

@mirkobrombin for review when you have a moment.

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