aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-08-27 13:44:46 +0200
committervaxerski <[email protected]>2022-08-27 13:44:46 +0200
commit65e0156e27423ba146d128184cc8099c8482b7a1 (patch)
tree81b384fc495b5c76396773f427c8fc8e396d70c8
parentce5b19cd64bbe79d6124240dc1f21eecefaa65ae (diff)
downloadHyprland-65e0156e27423ba146d128184cc8099c8482b7a1.tar.gz
Hyprland-65e0156e27423ba146d128184cc8099c8482b7a1.zip
fixes to chromium damage
-rw-r--r--src/helpers/SubsurfaceTree.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/helpers/SubsurfaceTree.cpp b/src/helpers/SubsurfaceTree.cpp
index 4f8197f6..3d575cd2 100644
--- a/src/helpers/SubsurfaceTree.cpp
+++ b/src/helpers/SubsurfaceTree.cpp
@@ -208,6 +208,14 @@ void Events::listener_commitSubsurface(void* owner, void* data) {
}
}
+ for (auto& cs : pNode->childSubsurfaces) {
+ const auto NODECOORDS = pNode->pSubsurface ? Vector2D(pNode->pSubsurface->pSubsurface->current.x, pNode->pSubsurface->pSubsurface->current.y) : Vector2D();
+
+ if (&cs != pNode->pSubsurface && cs.pSubsurface) {
+ g_pHyprRenderer->damageSurface(cs.pSubsurface->surface, lx - NODECOORDS.x + cs.pSubsurface->current.x, ly - NODECOORDS.y + cs.pSubsurface->current.y);
+ }
+ }
+
g_pHyprRenderer->damageSurface(pNode->pSurface, lx, ly);
}