mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 13:05:58 +01:00
destroy monitor on disabled
This commit is contained in:
parent
8d850b0ce1
commit
4f76d5d8d7
1 changed files with 4 additions and 0 deletions
|
@ -65,6 +65,10 @@ void Events::listener_newOutput(wl_listener* listener, void* data) {
|
||||||
if (monitorRule.disabled) {
|
if (monitorRule.disabled) {
|
||||||
wlr_output_enable(OUTPUT, 0);
|
wlr_output_enable(OUTPUT, 0);
|
||||||
wlr_output_commit(OUTPUT);
|
wlr_output_commit(OUTPUT);
|
||||||
|
|
||||||
|
if (const auto PMONITOR = g_pCompositor->getMonitorFromName(std::string(OUTPUT->name)); PMONITOR) {
|
||||||
|
listener_monitorDestroy(nullptr, PMONITOR->output);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue