aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorVaxry <[email protected]>2024-02-22 03:10:01 +0000
committerVaxry <[email protected]>2024-02-22 03:10:01 +0000
commit94aeb06d6ba14d403c46b52d1d2e397acb5906a4 (patch)
tree65d6c75afaf603b51f9abe0385104576b61fbeb6 /src
parentea3fd13e24d7d3a74cf803bef3e6133b5d708d1b (diff)
downloadHyprland-94aeb06d6ba14d403c46b52d1d2e397acb5906a4.tar.gz
Hyprland-94aeb06d6ba14d403c46b52d1d2e397acb5906a4.zip
toplevelexport: set last damage for dmabuf copy
Diffstat (limited to 'src')
-rw-r--r--src/protocols/ToplevelExport.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/protocols/ToplevelExport.cpp b/src/protocols/ToplevelExport.cpp
index e7ea787d..b0a3c7d7 100644
--- a/src/protocols/ToplevelExport.cpp
+++ b/src/protocols/ToplevelExport.cpp
@@ -452,6 +452,10 @@ bool CToplevelExportProtocolManager::copyFrameDmabuf(SScreencopyFrame* frame, ti
if (frame->overlayCursor)
g_pHyprRenderer->renderSoftwareCursors(PMONITOR, fakeDamage, g_pInputManager->getMouseCoordsInternal() - frame->pWindow->m_vRealPosition.vec());
+ // introspection uses this as final damage.
+ // TODO: dont. This fucking sucks.
+ PMONITOR->lastFrameDamage = fakeDamage;
+
g_pHyprRenderer->endRender();
return true;
}