|
|
|
@ -144,14 +144,15 @@ void wlr_idle_inhibit_v1_destroy(struct wlr_idle_inhibit_manager_v1 *idle_inhibi
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
wl_list_remove(&idle_inhibit->display_destroy.link);
|
|
|
|
|
|
|
|
|
|
struct wlr_idle_inhibitor_v1 *inhibitor;
|
|
|
|
|
struct wlr_idle_inhibitor_v1 *tmp;
|
|
|
|
|
wl_list_for_each_safe(inhibitor, tmp, &idle_inhibit->inhibitors, link) {
|
|
|
|
|
idle_inhibitor_v1_destroy(inhibitor);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
wlr_signal_emit_safe(&idle_inhibit->events.destroy, idle_inhibit);
|
|
|
|
|
wl_list_remove(&idle_inhibit->display_destroy.link);
|
|
|
|
|
|
|
|
|
|
struct wl_resource *resource;
|
|
|
|
|
struct wl_resource *tmp_resource;
|
|
|
|
|
wl_resource_for_each_safe(resource, tmp_resource, &idle_inhibit->resources) {
|
|
|
|
|