aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2025-02-18 01:52:57 +0100
committerFurkan Sahin <furkan-dev@proton.me>2025-02-18 01:52:57 +0100
commit7eebf314d6a4ceb93a7d0b1713ac1f519aa0d3be (patch)
tree33c6e8536e6ca5aa02d7d949368b2aa4a66f9675 /include
parent9bf4e155b88c7d199f50f79c4fb597925e2af036 (diff)
desktop/idle_inhibit: remove event listeners on destroy
This fixes a crash in wlroots listener checks. See #8509.
Diffstat (limited to 'include')
-rw-r--r--include/sway/desktop/idle_inhibit_v1.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sway/desktop/idle_inhibit_v1.h b/include/sway/desktop/idle_inhibit_v1.h
index 84cc666d..447ac870 100644
--- a/include/sway/desktop/idle_inhibit_v1.h
+++ b/include/sway/desktop/idle_inhibit_v1.h
@@ -13,6 +13,7 @@ enum sway_idle_inhibit_mode {
struct sway_idle_inhibit_manager_v1 {
struct wlr_idle_inhibit_manager_v1 *wlr_manager;
struct wl_listener new_idle_inhibitor_v1;
+ struct wl_listener manager_destroy;
struct wl_list inhibitors;
};