summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 5add915..2bcb8b1 100644
--- a/dwl.c
+++ b/dwl.c
@@ -628,7 +628,7 @@ checkidleinhibitor(struct wlr_surface *exclude)
struct wlr_surface *surface = wlr_surface_get_root_surface(inhibitor->surface);
struct wlr_scene_tree *tree = surface->data;
if (bypass_surface_visibility || (exclude != surface
- && tree->node.enabled)) {
+ && tree && tree->node.enabled)) {
inhibited = 1;
break;
}