From a800b54a13d3872b37b5f2ddd3cd381d4f183a30 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Wed, 23 Aug 2023 13:28:58 +0200 Subject: [PATCH] backends/drm: fix legacy modesets There's no pending frame on modesets with legacy, so calling pageFlipped crashes KWin BUG: 473664 --- src/backends/drm/drm_commit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/drm/drm_commit.cpp b/src/backends/drm/drm_commit.cpp index b166020106..1cce0190fb 100644 --- a/src/backends/drm/drm_commit.cpp +++ b/src/backends/drm/drm_commit.cpp @@ -126,7 +126,7 @@ bool DrmLegacyCommit::doModeset(DrmConnector *connector, DrmConnectorMode *mode) { uint32_t connectorId = connector->id(); if (drmModeSetCrtc(gpu()->fd(), m_pipeline->crtc()->id(), m_buffer->framebufferId(), 0, 0, &connectorId, 1, mode->nativeMode()) == 0) { - pageFlipped(std::chrono::steady_clock::now().time_since_epoch()); + m_pipeline->crtc()->setCurrent(m_buffer); return true; } else { return false;