diff --git a/src/backend/drm/DRM.cpp b/src/backend/drm/DRM.cpp index 6f11b41..076e7fe 100644 --- a/src/backend/drm/DRM.cpp +++ b/src/backend/drm/DRM.cpp @@ -1703,6 +1703,9 @@ uint32_t Aquamarine::CDRMFB::submitBuffer() { } void Aquamarine::SDRMConnectorCommitData::calculateMode(Hyprutils::Memory::CSharedPointer connector) { + if (!connector || !connector->output || !connector->output->state) + return; + const auto& STATE = connector->output->state->state(); const auto MODE = STATE.mode ? STATE.mode : STATE.customMode;