calculate damage properly for layers on commit

since the damageSurface func now works, we can remove this old remnant
This commit is contained in:
vaxerski 2022-06-30 18:46:00 +02:00
parent ac8a23c3ae
commit 96a23eca81

View file

@ -206,6 +206,5 @@ void Events::listener_commitLayerSurface(void* owner, void* data) {
layersurface->position = Vector2D(layersurface->geometry.x, layersurface->geometry.y);
// TODO: optimize this. This does NOT need to be here but it prevents some issues with full DT.
g_pHyprRenderer->damageMonitor(PMONITOR);
g_pHyprRenderer->damageSurface(layersurface->layerSurface->surface, layersurface->position.x, layersurface->position.y);
}