Skip to content

window: fix wrong scale being applied after workspace rules change monitor - #14832

Merged
vaxerski merged 1 commit into
hyprwm:mainfrom
awused:mapwindow-scale
May 29, 2026
Merged

window: fix wrong scale being applied after workspace rules change monitor#14832
vaxerski merged 1 commit into
hyprwm:mainfrom
awused:mapwindow-scale

Conversation

@awused

@awused awused commented May 27, 2026

Copy link
Copy Markdown
Contributor

No AI.

Describe your PR, what does it fix/add?

Removes redundant surface scale and transform updates from mapWindow. The full tree of subsurfaces was being walked twice, and at the end the main surface was also being updated on its own. But PMONITOR wasn't being updated to the current monitor after applying workspace rules, so that last one was based on a stale monitor.

Fixes #14726

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

Tested locally and confirmed the scale was only being sent to the surface once, with the correct value, whether or not the target workspace already exists. There are no returns in mapWindow() after onMap() is called so I think the call in onMap is safe to remove.

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

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 merged commit 54d4d3a into hyprwm:main May 29, 2026
9 of 10 checks passed
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