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
1 changed files with 2 additions and 1 deletions

View File

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