From 4dec21d8e4f9a29c54853b4e98cdd649d2dc40b1 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Sat, 11 Dec 2021 22:33:26 +0100 Subject: [PATCH] backends/drm: remove unused user data --- src/backends/drm/drm_pipeline_legacy.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/backends/drm/drm_pipeline_legacy.cpp b/src/backends/drm/drm_pipeline_legacy.cpp index 49eaee2d17..059aa3641a 100644 --- a/src/backends/drm/drm_pipeline_legacy.cpp +++ b/src/backends/drm/drm_pipeline_legacy.cpp @@ -22,9 +22,7 @@ bool DrmPipeline::presentLegacy() if ((!pending.crtc->current() || pending.crtc->current()->needsModeChange(m_primaryBuffer.get())) && !legacyModeset()) { return false; } - QVector *userData = new QVector(); - *userData << this; - if (drmModePageFlip(gpu()->fd(), pending.crtc->id(), m_primaryBuffer ? m_primaryBuffer->bufferId() : 0, DRM_MODE_PAGE_FLIP_EVENT, userData) != 0) { + if (drmModePageFlip(gpu()->fd(), pending.crtc->id(), m_primaryBuffer ? m_primaryBuffer->bufferId() : 0, DRM_MODE_PAGE_FLIP_EVENT, nullptr) != 0) { qCWarning(KWIN_DRM) << "Page flip failed:" << strerror(errno) << m_primaryBuffer; return false; }