mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-27 06:59:46 -05:00
wlr_idle: Handle inert seats
This commit is contained in:
parent
f988a75a80
commit
126222884d
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue