mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-23 16:03:49 -07:00
core: emit unmap event after unmap in surface destroy
This commit is contained in:
@@ -151,8 +151,10 @@ CWLSurfaceResource::~CWLSurfaceResource() {
|
||||
}
|
||||
|
||||
void CWLSurfaceResource::destroy() {
|
||||
if (mapped)
|
||||
if (mapped) {
|
||||
unmap();
|
||||
events.unmap.emit();
|
||||
}
|
||||
events.destroy.emit();
|
||||
PROTO::compositor->destroyResource(this);
|
||||
}
|
||||
|
Reference in New Issue
Block a user