Skip to content

monitor: fix centered floating windows off-screen in special workspace - #14203

Merged
vaxerski merged 1 commit into
hyprwm:mainfrom
Zebra2711:fix-wd
Apr 30, 2026
Merged

monitor: fix centered floating windows off-screen in special workspace#14203
vaxerski merged 1 commit into
hyprwm:mainfrom
Zebra2711:fix-wd

Conversation

@Zebra2711

Copy link
Copy Markdown
Contributor

Describe your PR, what does it fix/add?

This bug has existed for a long time, introduced by 9fb5025 . Correct logic should be middle() - w->m_vRealSize.goalv() / 2.f instead of centering on the top-left area

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

no

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

ready

Signed-off-by: Zebra2711 <zebra2711t@gmail.com>
@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.

Comment thread hyprtester/src/tests/main/window.cpp
@vaxerski
vaxerski merged commit bac49db into hyprwm:main Apr 30, 2026
10 checks passed
crthpl pushed a commit to crthpl/Hyprland that referenced this pull request Jun 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