diff options
author | Väinö Mäkelä <vaino.o.makela@gmail.com> | 2023-06-01 13:57:30 +0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-06-03 10:43:12 +0000 |
commit | 126222884dd4dfd625ff1356883489609086bf2b (patch) | |
tree | 50dc2bfddd0c67865c3d7694f8b2c42c37f08b1c | |
parent | f988a75a808ef555eed44090766f8bdcc87ed133 (diff) |
wlr_idle: Handle inert seats
-rw-r--r-- | types/wlr_idle.c | 3 |
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); |