mutliple fixes to subsurface handling
This commit is contained in:
parent
fc5cd49795
commit
9fcef41d66
3 changed files with 17 additions and 3 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue