Skip to content

fractionalscale: track if scale is known and send scales eagerly when known - #14798

Merged
vaxerski merged 1 commit into
hyprwm:mainfrom
awused:layershell-scale
May 28, 2026
Merged

fractionalscale: track if scale is known and send scales eagerly when known#14798
vaxerski merged 1 commit into
hyprwm:mainfrom
awused:layershell-scale

Conversation

@awused

@awused awused commented May 24, 2026

Copy link
Copy Markdown
Contributor

No AI.

Describe your PR, what does it fix/add?

This tracks whether a fractional scale has been explicitly set for a surface or not, and if one has been set it sends it when requested in onGetFractionalScale even if the surface is currently unmapped. That shouldn't ever be true for top level window surfaces unless they've been unmapped, but it means subsurfaces of unmapped surfaces will get the same scale as their parent.

Layers spawned on a specific monitor have the scale/transform immediately set from that monitor. This doesn't change the behaviour if the monitor's scale changes before mapping the layers.

Subsurfaces inherit the scales and transforms of their parents on creation, if known. This seems reasonable to me but it's the part I'm least confident about.

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

I looked into the bug report around double/redundant scale events (#9126) and confirmed this this does not regress it.

kitty --debug-rendering at 0.55.2 and this commit:
kitty-55.2.log
kitty-debug.log

Is it ready for merging, or does it need work?

Worth reviewing closely but I think it's ready.

@github-actions

Copy link
Copy Markdown

Hello and thank you for making a PR to Hyprland!

Please check the PR Guidelines and make sure your PR follows them.
It will make the entire review process faster. :)

If your code can be tested, please always add tests. See more here.

beep boop, I'm just a bot. A real human will review your PR soon.

@vaxerski vaxerski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is fine

@awused

awused commented May 28, 2026

Copy link
Copy Markdown
Contributor Author

Ran the keybinds tests locally after patching in #14846, seems like the failure was a flake.

@vaxerski

Copy link
Copy Markdown
Member

yes some tests do a funny sometimes

@vaxerski
vaxerski merged commit 293aa7c into hyprwm:main May 28, 2026
9 of 10 checks passed
ItsOhen pushed a commit to ItsOhen/Hyprland that referenced this pull request Jun 1, 2026
Psilocybin78 pushed a commit to Psilocybin78/Singularity-compositor that referenced this pull request Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants