From e793f10b8bd1685a2e2bbd7cc90063f12bf380c4 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Mon, 19 Feb 2024 20:05:51 +0000 Subject: [PATCH] screencopy: fix invalid damage being used for final copy in dma --- src/protocols/Screencopy.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/protocols/Screencopy.cpp b/src/protocols/Screencopy.cpp index 95542f34..11dcf89d 100644 --- a/src/protocols/Screencopy.cpp +++ b/src/protocols/Screencopy.cpp @@ -531,6 +531,8 @@ bool CScreencopyProtocolManager::copyFrameDmabuf(SScreencopyFrame* frame) { g_pHyprOpenGL->renderTexture(sourceTex, &monbox, 1); g_pHyprOpenGL->setMonitorTransformEnabled(true); + frame->pMonitor->lastFrameDamage = fakeDamage; + g_pHyprRenderer->endRender(); wlr_texture_destroy(sourceTex);