mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-12-25 16:53:25 +03:00
core: emit unmap event after unmap in surface destroy
This commit is contained in:
parent
256db08aed
commit
7df9b01d48
@ -151,8 +151,10 @@ CWLSurfaceResource::~CWLSurfaceResource() {
|
||||
}
|
||||
|
||||
void CWLSurfaceResource::destroy() {
|
||||
if (mapped)
|
||||
if (mapped) {
|
||||
unmap();
|
||||
events.unmap.emit();
|
||||
}
|
||||
events.destroy.emit();
|
||||
PROTO::compositor->destroyResource(this);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user