mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-12-20 06:01:50 +03:00
destroy monitor on disabled
This commit is contained in:
parent
8d850b0ce1
commit
4f76d5d8d7
@ -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 New Issue
Block a user