aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);