drm: avoid sending state to non-existent outputs

This commit is contained in:
Vaxry 2024-07-08 17:20:41 +02:00
parent 42585b413d
commit acba4aa037

View file

@ -518,7 +518,8 @@ void Aquamarine::CDRMBackend::recheckCRTCs() {
} }
// tell the user to re-assign a valid mode etc // tell the user to re-assign a valid mode etc
c->output->events.state.emit(IOutput::SStateEvent{}); if (c->output)
c->output->events.state.emit(IOutput::SStateEvent{});
} }
if (rescan) if (rescan)