diff options
author | Vaxry <[email protected]> | 2024-07-30 15:46:35 +0200 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-07-30 15:46:41 +0200 |
commit | 1c221240d0c6c352cea203b51a918b906a8d340f (patch) | |
tree | 18fde30d2f8dd888619a7fbd5dc31bd82500991a | |
parent | c1afc82a4ceb2e1989ec750b476a97f7f49051e3 (diff) | |
download | Hyprland-1c221240d0c6c352cea203b51a918b906a8d340f.tar.gz Hyprland-1c221240d0c6c352cea203b51a918b906a8d340f.zip |
output: submit damage to kms
-rw-r--r-- | src/helpers/Monitor.cpp | 2 | ||||
-rw-r--r-- | src/render/Renderer.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index 9d282090..787b790f 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -822,6 +822,8 @@ bool CMonitor::attemptDirectScanout() { Debug::log(TRACE, "presentFeedback for DS"); PSURFACE->presentFeedback(&now, this, true); + output->state->addDamage(CBox{{}, vecPixelSize}); + if (state.commit()) { if (lastScanout.expired()) { lastScanout = PCANDIDATE; diff --git a/src/render/Renderer.cpp b/src/render/Renderer.cpp index 0bf4c9f3..df0c6af5 100644 --- a/src/render/Renderer.cpp +++ b/src/render/Renderer.cpp @@ -1371,6 +1371,8 @@ void CHyprRenderer::renderMonitor(CMonitor* pMonitor) { frameDamage.add(damage); g_pHyprRenderer->damageMirrorsWith(pMonitor, frameDamage); + + pMonitor->output->state->addDamage(frameDamage); } pMonitor->renderingActive = false; |