mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-05 14:42:01 -07:00
surface: emit unmap before unmapping and releasing the buffers
This commit is contained in:
@@ -365,8 +365,8 @@ CXDGSurfaceResource::CXDGSurfaceResource(SP<CXdgSurface> resource_, SP<CXDGWMBas
|
||||
|
||||
if (!surface->current.buffer && mapped) {
|
||||
mapped = false;
|
||||
surface->unmap();
|
||||
events.unmap.emit();
|
||||
surface->unmap();
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user