commit 9c155eefdc018f878ea6950e6bd383b985401339
parent df34fdd4831bb4f94ad261d743edcd0493c24f9c
Author: Ben Jargowsky <benjar63@gmail.com>
Date: Fri, 2 Dec 2022 11:15:55 -0800
Check that inhibitor scene tree is not null
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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;
}