backends/drm: force soft cursor if image creation fails

If the soft cursor is only set but not forced then KWin will try to update
cursors again, making it go into code paths that will crash.

BUG: 445507
This commit is contained in:
Xaver Hugl 2021-11-18 14:27:31 +01:00
parent 50c39e202b
commit 3e24bc008a

View file

@ -275,7 +275,7 @@ bool DrmGpu::updateOutputs()
} else {
auto output = new DrmOutput(conn->pipeline());
if (!output->initCursor(m_cursorSize)) {
m_platform->setSoftwareCursor(true);
m_platform->setSoftwareCursorForced(true);
}
m_drmOutputs << output;
m_outputs << output;