mutliple fixes to subsurface handling

This commit is contained in:
vaxerski
2022-06-28 15:30:46 +02:00
parent fc5cd49795
commit 9fcef41d66
3 changed files with 17 additions and 3 deletions

View File

@@ -551,6 +551,11 @@ void CHyprRenderer::damageSurface(wlr_surface* pSurface, double x, double y) {
pixman_region32_init(&damageBox);
wlr_surface_get_effective_damage(pSurface, &damageBox);
if (!pixman_region32_not_empty(&damageBox)) {
pixman_region32_fini(&damageBox);
return;
}
pixman_region32_translate(&damageBox, x, y);
for (auto& m : g_pCompositor->m_lMonitors) {