listeners: more safety around change

This commit is contained in:
vaxerski 2023-04-12 20:18:55 +01:00
parent 5f000306f5
commit 985764c8db

View file

@ -19,6 +19,9 @@ void Events::listener_change(wl_listener* listener, void* data) {
// layout got changed, let's update monitors.
const auto CONFIG = wlr_output_configuration_v1_create();
if (!CONFIG)
return;
for (auto& m : g_pCompositor->m_vMonitors) {
if (!m->output)
continue;