summaryrefslogtreecommitdiff
path: root/src/helpers/SubsurfaceTree.cpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-09-13 15:44:50 +0200
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-09-13 15:44:50 +0200
commite518adf1ac3db14e85fd3b8ceab71c22eab9d1c7 (patch)
treefce1dee665cd4f2386486a8652aa15b64950d816 /src/helpers/SubsurfaceTree.cpp
parentd8dbe26f31ee856417766762a77f6acf25e146fe (diff)
don't iterate over subsurfaces in unmap
Diffstat (limited to 'src/helpers/SubsurfaceTree.cpp')
-rw-r--r--src/helpers/SubsurfaceTree.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/helpers/SubsurfaceTree.cpp b/src/helpers/SubsurfaceTree.cpp
index e0e1f3c9..53174d91 100644
--- a/src/helpers/SubsurfaceTree.cpp
+++ b/src/helpers/SubsurfaceTree.cpp
@@ -170,12 +170,10 @@ void Events::listener_unmapSubsurface(void* owner, void* data) {
int lx = 0, ly = 0;
addSurfaceGlobalOffset(PNODE, &lx, &ly);
- wlr_box extents = {0};
+ wlr_box extents = {lx, ly, 0, 0};
if (PNODE->pSurface) {
- wlr_surface_get_extends(PNODE->pSurface, &extents);
-
- extents.x += lx;
- extents.y += ly;
+ extents.width = PNODE->pSurface->current.width;
+ extents.height = PNODE->pSurface->current.height;
g_pHyprRenderer->damageBox(&extents);
}