output: submit damage to kms

This commit is contained in:
Vaxry 2024-07-30 15:46:35 +02:00
parent c1afc82a4c
commit 1c221240d0
2 changed files with 4 additions and 0 deletions

View file

@ -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;

View file

@ -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;