Skip to content

Conversation

ThomasAdam
Copy link
Member

When a conditional has both screen and desk in, such as:

All (Screen HDMI-1, Desk 0) Echo "$[w.name]"

the previous logiv was to treat those options as mutually exclusive --
hence, one or the other would match, but never both.

This commit fixes this by checking for both conditions if they're
present, otherwise defaulting to treating them separately if only one of
them appears.

Fixes #741

When a conditional has both screen and desk in, such as:

    All (Screen HDMI-1, Desk 0) Echo "$[w.name]"

the previous logiv was to treat those options as mutually exclusive --
hence, one or the other would match, but never both.

This commit fixes this by checking for both conditions if they're
present, otherwise defaulting to treating them separately if only one of
them appears.

Fixes #741
@ThomasAdam ThomasAdam added this to the 1.0.8 milestone Aug 31, 2023
@ThomasAdam ThomasAdam self-assigned this Aug 31, 2023
@ThomasAdam ThomasAdam added the type:bug Something's broken! label Aug 31, 2023
@ThomasAdam ThomasAdam merged commit b454ca0 into main Aug 31, 2023
@ThomasAdam ThomasAdam deleted the ta/gh-741-2 branch August 31, 2023 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something's broken!
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

conditions: Desk does not take a string
1 participant