summaryrefslogtreecommitdiff
path: root/dwl.c
diff options
context:
space:
mode:
authorBen Jargowsky <benjar63@gmail.com>2022-12-02 11:15:55 -0800
committerLeonardo Hernández <leohdz172@protonmail.com>2022-12-02 15:10:25 -0600
commit9c155eefdc018f878ea6950e6bd383b985401339 (patch)
treee96bdc78234e90ad231f938f7a23114b3594398d /dwl.c
parentdf34fdd4831bb4f94ad261d743edcd0493c24f9c (diff)
Check that inhibitor scene tree is not null
Diffstat (limited to 'dwl.c')
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
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;
}