mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-10-07 02:26:28 +00:00
surface: emit unmap before unmapping and releasing the buffers
This commit is contained in:
@@ -152,8 +152,8 @@ CWLSurfaceResource::~CWLSurfaceResource() {
|
||||
|
||||
void CWLSurfaceResource::destroy() {
|
||||
if (mapped) {
|
||||
unmap();
|
||||
events.unmap.emit();
|
||||
unmap();
|
||||
}
|
||||
events.destroy.emit();
|
||||
PROTO::compositor->destroyResource(this);
|
||||
|
Reference in New Issue
Block a user