summaryrefslogtreecommitdiff
path: root/src/protocols/Screencopy.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-02-19 20:05:51 +0000
committerVaxry <vaxry@vaxry.net>2024-02-19 20:05:51 +0000
commite793f10b8bd1685a2e2bbd7cc90063f12bf380c4 (patch)
tree3048366bd8fa24ceca9e15d015de58d75707a879 /src/protocols/Screencopy.cpp
parentd62e7a5125c551fe8a94e076e64d42b702d923b1 (diff)
screencopy: fix invalid damage being used for final copy in dma
Diffstat (limited to 'src/protocols/Screencopy.cpp')
-rw-r--r--src/protocols/Screencopy.cpp2
1 files changed, 2 insertions, 0 deletions
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);