mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 01:46:00 +01:00
core: emit unmap event after unmap in surface destroy
This commit is contained in:
parent
256db08aed
commit
7df9b01d48
1 changed files with 3 additions and 1 deletions
|
@ -151,8 +151,10 @@ CWLSurfaceResource::~CWLSurfaceResource() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void CWLSurfaceResource::destroy() {
|
void CWLSurfaceResource::destroy() {
|
||||||
if (mapped)
|
if (mapped) {
|
||||||
unmap();
|
unmap();
|
||||||
|
events.unmap.emit();
|
||||||
|
}
|
||||||
events.destroy.emit();
|
events.destroy.emit();
|
||||||
PROTO::compositor->destroyResource(this);
|
PROTO::compositor->destroyResource(this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue