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

monitor: add prev_primary logic #826

Merged
merged 1 commit into from
Mar 14, 2023
Merged

monitor: add prev_primary logic #826

merged 1 commit into from
Mar 14, 2023

Conversation

ThomasAdam
Copy link
Member

Track which monitors hold the current primary bit, and the monitor which
used to have it.

This is sometimes useful to infer when the primary status of a monitor
has changed, and which monitor it is now, and which monitor it used to
be.

For example:

DestroyFunc RandRFunc
AddToFunc   RandRFunc
+ I Echo "Primary is: $[monitor.primary], previous: $[monitor.prev_primary]"

Fixes #825

Track which monitors hold the current primary bit, and the monitor which
used to have it.

This is sometimes useful to infer when the primary status of a monitor
has changed, and which monitor it is now, and which monitor it used to
be.

For example:

    DestroyFunc RandRFunc
    AddToFunc   RandRFunc
    + I Echo "Primary is: $[monitor.primary], previous: $[monitor.prev_primary]"

Fixes #825
@ThomasAdam ThomasAdam added this to the 1.0.7 milestone Feb 18, 2023
@ThomasAdam ThomasAdam self-assigned this Feb 18, 2023
@ThomasAdam ThomasAdam added the type:bug Something's broken! label Mar 14, 2023
@ThomasAdam ThomasAdam merged commit d61963f into master Mar 14, 2023
@ThomasAdam ThomasAdam deleted the ta/add-prev-primary branch March 14, 2023 20:48
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.

Disabling/enabling monitor does not call RandRFunc
1 participant