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

Default unconfigured monitors to open to the right #5741

Merged
merged 2 commits into from
Apr 25, 2024

Conversation

eriedaberrie
Copy link
Contributor

Describe your PR, what does it fix/add?

This PR returns the functionality of making unconfigured monitors default to opening to the right (previously all the if statements fell through and they ended up opening up, the enum zero value). It also improves the logging for invalid auto directions. Finally, it makes the logging performed in arrangeMonitors actually accurate under the new directional auto system, instead of just stating the next available rightwards position even when the new monitor isn't being arranged to the right.

I also noticed that since the max monitor positions are being stored as ints, there was inconsistent use of decimals in the arrangeMonitor logging. Seeing as how monitor positions can only be integers values anyways, I opted to just remove all decimals in the logging.

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

I'm not too sure if the logging changes are really in the scope of the PR but the inconsistencies were really bugging me and I didn't want to make a whole new PR to edit logging.

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

vaxerski
vaxerski previously approved these changes Apr 25, 2024
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
Copy link
Member

ah clang-format needed

@eriedaberrie eriedaberrie force-pushed the auto-monitors-fixup branch 2 times, most recently from 2ffd21d to 83d4195 Compare April 25, 2024 17:19
@eriedaberrie
Copy link
Contributor Author

Whoops I accidentally pushed to the wrong branch just now.
(clang-format has been performed)

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 e87227e into hyprwm:main Apr 25, 2024
10 checks passed
@eriedaberrie eriedaberrie deleted the auto-monitors-fixup branch April 26, 2024 00:35
gulafaran pushed a commit to gulafaran/Hyprland that referenced this pull request Apr 26, 2024
* config: default unconfigured monitors to open to the right

* monitor: improve logging for auto positioning
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.

2 participants