backends/drm: add warning if no matching mode can be found

This commit is contained in:
Xaver Hugl 2022-01-24 09:44:38 +01:00
parent 74b1fb0ab5
commit 83275c3f31

View file

@ -420,6 +420,7 @@ bool DrmOutput::queueChanges(const WaylandOutputConfig &config)
}
}
if (index == -1) {
qCWarning(KWIN_DRM).nospace() << "Could not find mode " << props->modeSize << "@" << props->refreshRate << " for output " << this;
return false;
}
m_pipeline->pending.modeIndex = index;