diff options
author | Ben Jargowsky <benjar63@gmail.com> | 2022-12-02 11:15:55 -0800 |
---|---|---|
committer | Leonardo Hernández <leohdz172@protonmail.com> | 2022-12-02 15:10:25 -0600 |
commit | 9c155eefdc018f878ea6950e6bd383b985401339 (patch) | |
tree | e96bdc78234e90ad231f938f7a23114b3594398d /dwl.c | |
parent | df34fdd4831bb4f94ad261d743edcd0493c24f9c (diff) |
Check that inhibitor scene tree is not null
Diffstat (limited to 'dwl.c')
-rw-r--r-- | dwl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |