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

FindScreenOfXY: Return closest monitor in dead area. #1072

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

somiaj
Copy link
Collaborator

@somiaj somiaj commented Oct 17, 2024

If a monitor is not found, due to the point (x,y) being in a dead area, instead of returning RB_MIN, return the closest monitor using the taxi cab metric to the closest border. This is makes it so if a window is placed in a dead area when honoring the working area, the window is placed on the closest monitor instead of the first monitor.

If a monitor is not found, due to the point (x,y) being in a dead
area, instead of returning RB_MIN, return the closest monitor using
the taxi cab metric to the closest border. This is makes it so
if a window is placed in a dead area when honoring the working
area, the window is placed on the closest monitor instead of the
first monitor.
@ThomasAdam ThomasAdam added the type:enhancement Augmenting an existing feature label Oct 17, 2024
@ThomasAdam ThomasAdam added this to the 1.1.1 milestone Oct 17, 2024
@ThomasAdam ThomasAdam merged commit b2fe1e0 into main Oct 17, 2024
5 checks passed
@ThomasAdam ThomasAdam deleted the js/monitorxy-find-closest branch October 17, 2024 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Augmenting an existing feature
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants