mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 07:05:58 +01:00
parent
ab0a3268e0
commit
09bb5658b7
2 changed files with 10 additions and 0 deletions
|
@ -111,6 +111,11 @@ void CLayerSurface::onDestroy() {
|
|||
layerSurface.reset();
|
||||
if (surface)
|
||||
surface->unassign();
|
||||
|
||||
listeners.unmap.reset();
|
||||
listeners.destroy.reset();
|
||||
listeners.map.reset();
|
||||
listeners.commit.reset();
|
||||
}
|
||||
|
||||
void CLayerSurface::onMap() {
|
||||
|
|
|
@ -790,6 +790,11 @@ void Events::listener_destroyWindow(void* owner, void* data) {
|
|||
Debug::log(LOG, "Unmapped {} removed instantly", PWINDOW);
|
||||
g_pCompositor->removeWindowFromVectorSafe(PWINDOW); // most likely X11 unmanaged or sumn
|
||||
}
|
||||
|
||||
PWINDOW->listeners.unmap.reset();
|
||||
PWINDOW->listeners.destroy.reset();
|
||||
PWINDOW->listeners.map.reset();
|
||||
PWINDOW->listeners.commit.reset();
|
||||
}
|
||||
|
||||
void Events::listener_setTitleWindow(void* owner, void* data) {
|
||||
|
|
Loading…
Reference in a new issue