Check that inhibitor scene tree is not null

This commit is contained in:
Ben Jargowsky 2022-12-02 11:15:55 -08:00 committed by Leonardo Hernández
parent df34fdd483
commit 9c155eefdc

2
dwl.c
View File

@ -598,7 +598,7 @@ checkidleinhibitor(struct wlr_surface *exclude)
wl_list_for_each(inhibitor, &idle_inhibit_mgr->inhibitors, link) {
struct wlr_scene_tree *tree = inhibitor->surface->data;
if (bypass_surface_visibility || (exclude != inhibitor->surface
&& tree->node.enabled)) {
&& tree && tree->node.enabled)) {
inhibited = 1;
break;
}