mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-10 08:05:58 +01:00
output: submit damage to kms
This commit is contained in:
parent
c1afc82a4c
commit
1c221240d0
2 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue