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

Add option to disable window direction monitor fallback #6182

Merged
merged 2 commits into from
May 22, 2024

Conversation

shezdy
Copy link
Contributor

@shezdy shezdy commented May 21, 2024

Describe your PR, what does it fix/add?

Adds an option to disable monitor fallback when focusing or moving a window in a direction. A value of 0 will disable moving to an adjacent monitor when focusing/moving a window over the edge of a monitor. A value of 1 (default) will keep behavior as it is now.

With window_direction_monitor_fallback = 0:
movefocus l will do nothing if the focused window is on the left edge of the monitor (or focus the next window on the workspace depending on no_focus_fallback)

movewindow l will do nothing if the focused window is already on the left edge of the monitor

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

This was a feature request for my plugin (shezdy/hyprsplit#20), but I think it makes sense to implement it here.

I don't think the name window_direction_monitor_fallback is ideal but I can't think of anything better so please suggest a better name if you have one.

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

ready, needs wiki mr

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.

coolio, wiki mr needed

@shezdy shezdy requested a review from vaxerski May 22, 2024 16:35
@vaxerski vaxerski merged commit 155ae37 into hyprwm:main May 22, 2024
10 checks passed
@shezdy shezdy deleted the monitor-fallback branch May 22, 2024 23:25
The-Briel-Deal pushed a commit to The-Briel-Deal/Hyprland that referenced this pull request May 25, 2024
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