diff --git a/src/events/Monitors.cpp b/src/events/Monitors.cpp index aade1f6e..b535b1f8 100644 --- a/src/events/Monitors.cpp +++ b/src/events/Monitors.cpp @@ -20,6 +20,9 @@ void Events::listener_change(wl_listener* listener, void* data) { const auto CONFIG = wlr_output_configuration_v1_create(); for (auto& m : g_pCompositor->m_vMonitors) { + if (!m->output) + continue; + const auto CONFIGHEAD = wlr_output_configuration_head_v1_create(CONFIG, m->output); // TODO: clients off of disabled