aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFerdinand Bachmann <ferdinand.bachmann@yrlf.at>2025-02-18 01:52:57 +0100
committerSimon Ser <contact@emersion.fr>2025-04-13 23:40:56 +0200
commit92c82e6952394b714d7818deb1d46d616a39dfc0 (patch)
tree33c6e8536e6ca5aa02d7d949368b2aa4a66f9675 /include
parente51ecf71aa0afdcce4c9768f0a614222ee79cee2 (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;
};