aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVäinö Mäkelä <vaino.o.makela@gmail.com>2023-06-01 13:57:30 +0300
committerSimon Ser <contact@emersion.fr>2023-06-03 10:43:12 +0000
commit126222884dd4dfd625ff1356883489609086bf2b (patch)
tree50dc2bfddd0c67865c3d7694f8b2c42c37f08b1c
parentf988a75a808ef555eed44090766f8bdcc87ed133 (diff)
wlr_idle: Handle inert seats
-rw-r--r--types/wlr_idle.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/types/wlr_idle.c b/types/wlr_idle.c
index cb3a1cc3..64d6c1ff 100644
--- a/types/wlr_idle.c
+++ b/types/wlr_idle.c
@@ -165,6 +165,9 @@ static void create_idle_timer(struct wl_client *client,
}
wl_resource_set_implementation(resource, &idle_timeout_impl,
NULL, handle_timer_resource_destroy);
+ if (client_seat == NULL) {
+ return;
+ }
if (!create_timer(idle, client_seat->seat, timeout, resource)) {
wl_resource_post_no_memory(resource);