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

Changemonitor wrapping behavior (fixed with mirrored/removed monitors) #70

Merged
merged 4 commits into from
May 1, 2024

Conversation

zjeffer
Copy link
Collaborator

@zjeffer zjeffer commented May 1, 2024

Improves upon #45 (I couldn't push to that PR so I'm creating a new one).

I have a mirrored display which gets ID 1, while my other monitors have ID 0, 2, 3. #45 didn't work for me because it tried to move my workspace to a monitor that had an ID, but didn't actually 'exist' (because it's mirrored to the monitor with ID 3).
I think the same bug would happen if you remove a monitor.

CC @UwUnyaa

closes #41

@zjeffer zjeffer requested a review from Duckonaut May 1, 2024 10:00
Copy link
Owner

@Duckonaut Duckonaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get how C++ iterators are fancy but honestly for an operation with such a simple check, with two layer of std iterator I think I'd honestly prefer a for loop. I really don't like the C++ approach to iterators lol

@zjeffer zjeffer requested a review from Duckonaut May 1, 2024 11:09
Copy link
Owner

@Duckonaut Duckonaut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zjeffer zjeffer merged commit d575469 into main May 1, 2024
1 check passed
@zjeffer zjeffer deleted the changemonitor-wrapping-behavior branch May 1, 2024 11:25
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.

split-changemonitor not executing in one direction
3 participants