Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid rounding errors in window position on dwindle #3524

Merged
merged 3 commits into from
Oct 9, 2023

Conversation

FakeMichau
Copy link
Contributor

@FakeMichau FakeMichau commented Oct 8, 2023

Describe your PR, what does it fix/add?

Avoids rounding errors in window position and size which can result in wallpaper being visible between windows when it shouldn't. Simply gives second children the rest of the space instead of calculating again.

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

Should resolve #3511

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

It's ready

@FakeMichau
Copy link
Contributor Author

FakeMichau commented Oct 8, 2023

Just realized it's only for the dwindle layout but I've seen this issue on master as well. Will make a commit soon hopefully

edit: The issue on master layout seems way more complex. I had moderate success with smart_resizing = false but having it enabled always resulted in some kind of issue with resizing. I think another PR in the future will be a better option.

@FakeMichau FakeMichau marked this pull request as draft October 8, 2023 23:47
@FakeMichau FakeMichau changed the title Avoid rounding errors in window position Avoid rounding errors in window position on dwindle Oct 9, 2023
@FakeMichau FakeMichau marked this pull request as ready for review October 9, 2023 00:43
Copy link
Member

@vaxerski vaxerski left a comment

Choose a reason for hiding this comment

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

lgtm

@vaxerski vaxerski merged commit 7f8e0a1 into hyprwm:main Oct 9, 2023
10 checks passed
@FakeMichau FakeMichau deleted the fix-window-gaps branch October 9, 2023 11:34
pdamianik pushed a commit to pdamianik/Hyprland that referenced this pull request Oct 10, 2023
* Avoid rounding errors in window position

* Fix naming scheme

* Fix unwanted window movement
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.

Uncommon resolution - bottom row of pixels not used for windows
2 participants