aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/events/Layers.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/events/Layers.cpp b/src/events/Layers.cpp
index 74f70f54..afa702c4 100644
--- a/src/events/Layers.cpp
+++ b/src/events/Layers.cpp
@@ -80,6 +80,7 @@ void Events::listener_destroyLayerSurface(void* owner, void* data) {
layersurface->noProcess = true;
+ layersurface->hyprListener_commitLayerSurface.removeCallback();
layersurface->hyprListener_destroyLayerSurface.removeCallback();
layersurface->hyprListener_mapLayerSurface.removeCallback();
layersurface->hyprListener_unmapLayerSurface.removeCallback();