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

GotoDesk: fallback to current monitor if not given #966

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

ThomasAdam
Copy link
Member

When parsing GotoDesk, don't assume n -> m arguments, as there's
validity for this command to have different combinations.

Instead, always assume the first argument is a potential monitor, and
look that up. If it isn't found as a monitor, treat the rest of the
command as desk coordinates to lookup. Otherwise, skip over the valid
monitor name, and perform the desk lookup.

When parsing GotoDesk, don't assume n -> m arguments, as there's
validity for this command to have different combinations.

Instead, always assume the first argument is a potential monitor, and
look that up.  If it isn't found as a monitor, treat the rest of the
command as desk coordinates to lookup.  Otherwise, skip over the valid
monitor name, and perform the desk lookup.
@ThomasAdam ThomasAdam added this to the 1.1.0 milestone Mar 20, 2024
@ThomasAdam ThomasAdam self-assigned this Mar 20, 2024
@ThomasAdam ThomasAdam merged commit 5440ca5 into main Mar 20, 2024
5 checks passed
@ThomasAdam ThomasAdam deleted the ta/gotodesk-screen-handling branch March 20, 2024 08:57
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.

1 participant