mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-01 22:25:59 +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");
|
Debug::log(TRACE, "presentFeedback for DS");
|
||||||
PSURFACE->presentFeedback(&now, this, true);
|
PSURFACE->presentFeedback(&now, this, true);
|
||||||
|
|
||||||
|
output->state->addDamage(CBox{{}, vecPixelSize});
|
||||||
|
|
||||||
if (state.commit()) {
|
if (state.commit()) {
|
||||||
if (lastScanout.expired()) {
|
if (lastScanout.expired()) {
|
||||||
lastScanout = PCANDIDATE;
|
lastScanout = PCANDIDATE;
|
||||||
|
|
|
@ -1371,6 +1371,8 @@ void CHyprRenderer::renderMonitor(CMonitor* pMonitor) {
|
||||||
frameDamage.add(damage);
|
frameDamage.add(damage);
|
||||||
|
|
||||||
g_pHyprRenderer->damageMirrorsWith(pMonitor, frameDamage);
|
g_pHyprRenderer->damageMirrorsWith(pMonitor, frameDamage);
|
||||||
|
|
||||||
|
pMonitor->output->state->addDamage(frameDamage);
|
||||||
}
|
}
|
||||||
|
|
||||||
pMonitor->renderingActive = false;
|
pMonitor->renderingActive = false;
|
||||||
|
|
Loading…
Reference in a new issue