From 126222884dd4dfd625ff1356883489609086bf2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A4in=C3=B6=20M=C3=A4kel=C3=A4?= Date: Thu, 1 Jun 2023 13:57:30 +0300 Subject: [PATCH] wlr_idle: Handle inert seats --- types/wlr_idle.c | 3 +++ 1 file changed, 3 insertions(+) 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);