From 9c155eefdc018f878ea6950e6bd383b985401339 Mon Sep 17 00:00:00 2001 From: Ben Jargowsky Date: Fri, 2 Dec 2022 11:15:55 -0800 Subject: Check that inhibitor scene tree is not null --- dwl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dwl.c b/dwl.c index 5f6d061..7ab649a 100644 --- a/dwl.c +++ b/dwl.c @@ -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; } -- cgit v1.2.3