mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-10 07:45:59 +01:00
don't iterate over subsurfaces in unmap
This commit is contained in:
parent
d8dbe26f31
commit
e518adf1ac
1 changed files with 3 additions and 5 deletions
|
@ -170,12 +170,10 @@ void Events::listener_unmapSubsurface(void* owner, void* data) {
|
||||||
int lx = 0, ly = 0;
|
int lx = 0, ly = 0;
|
||||||
addSurfaceGlobalOffset(PNODE, &lx, &ly);
|
addSurfaceGlobalOffset(PNODE, &lx, &ly);
|
||||||
|
|
||||||
wlr_box extents = {0};
|
wlr_box extents = {lx, ly, 0, 0};
|
||||||
if (PNODE->pSurface) {
|
if (PNODE->pSurface) {
|
||||||
wlr_surface_get_extends(PNODE->pSurface, &extents);
|
extents.width = PNODE->pSurface->current.width;
|
||||||
|
extents.height = PNODE->pSurface->current.height;
|
||||||
extents.x += lx;
|
|
||||||
extents.y += ly;
|
|
||||||
|
|
||||||
g_pHyprRenderer->damageBox(&extents);
|
g_pHyprRenderer->damageBox(&extents);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue