Skip to content

feat(hyprland): add mirrorOf member of Monitor#305

Open
Dr0med4r wants to merge 2 commits intoAylur:mainfrom
Dr0med4r:add_monitor_of
Open

feat(hyprland): add mirrorOf member of Monitor#305
Dr0med4r wants to merge 2 commits intoAylur:mainfrom
Dr0med4r:add_monitor_of

Conversation

@Dr0med4r
Copy link
Copy Markdown
Contributor

@Dr0med4r Dr0med4r commented Mar 2, 2025

For this, it is necessary to use 'monitors all' instead of 'monitors.'
If this is not done, the 'monitoradded' event will add an empty monitor, and the 'monitorremoved' event will fail with a null error.
This fixes issues with mirrored displays, but now mirrored monitors are listed under 'monitors' (which they previously were, but not fully and I don't know if this is intended behaviour).

For this it is necessary to use "monitors all" and not "monitors"
if this is not done the monitoradded event will add an empty monitor and
the monitorremoved event will fail with a null error.
Comment thread lib/hyprland/monitor.vala Outdated
Comment thread lib/hyprland/monitor.vala Outdated
This is null if the monitor is not mirrored or mirrorOf is not yet
implemented else it is the monitor mirrored.
@Dr0med4r
Copy link
Copy Markdown
Contributor Author

Dr0med4r commented Mar 3, 2025

Should there be a distinction between "hyprland before 0.45" and "not mirrored"?
If so how?

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.

2 participants