From acba4aa0371ea4f56e993e0939e8d223a3a12aca Mon Sep 17 00:00:00 2001 From: Vaxry Date: Mon, 8 Jul 2024 17:20:41 +0200 Subject: [PATCH] drm: avoid sending state to non-existent outputs --- src/backend/drm/DRM.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/drm/DRM.cpp b/src/backend/drm/DRM.cpp index 442a5cf..042df7a 100644 --- a/src/backend/drm/DRM.cpp +++ b/src/backend/drm/DRM.cpp @@ -518,7 +518,8 @@ void Aquamarine::CDRMBackend::recheckCRTCs() { } // 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)