mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 00:05:59 +01:00
guard pSurface in unmapsubsurface
This commit is contained in:
parent
0281caa8e0
commit
f905ae33c8
1 changed files with 6 additions and 4 deletions
|
@ -171,12 +171,14 @@ void Events::listener_unmapSubsurface(void* owner, void* data) {
|
|||
addSurfaceGlobalOffset(PNODE, &lx, &ly);
|
||||
|
||||
wlr_box extents = {0};
|
||||
wlr_surface_get_extends(PNODE->pSurface, &extents);
|
||||
if (PNODE->pSurface) {
|
||||
wlr_surface_get_extends(PNODE->pSurface, &extents);
|
||||
|
||||
extents.x += lx;
|
||||
extents.y += ly;
|
||||
extents.x += lx;
|
||||
extents.y += ly;
|
||||
|
||||
g_pHyprRenderer->damageBox(&extents);
|
||||
g_pHyprRenderer->damageBox(&extents);
|
||||
}
|
||||
|
||||
SubsurfaceTree::destroySurfaceTree(subsurface->pChild);
|
||||
subsurface->pChild = nullptr;
|
||||
|
|
Loading…
Reference in a new issue