diff options
| author | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-12-16 16:31:31 -0600 | 
|---|---|---|
| committer | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-12-16 17:20:59 -0600 | 
| commit | 803a9ba98d6976c71e92973e3af6096476984fa3 (patch) | |
| tree | 05276cfd319f5ddce61f2bbc3a17e871bddd419b /dwl.c | |
| parent | a39a46c908011de913b142dbd1dd427eb7fbca0a (diff) | |
Revert "Revert "Check that inhibitor scene tree is not null""
This reverts commit 035bb99d67b59a84cfc2e911d222fb597591a8be.
Not checking `tree != NULL` result in a segfault if the surface doesn't have a
role (for example because it is a newly created surface)
Closes: https://github.com/djpohly/dwl/issues/359
Diffstat (limited to 'dwl.c')
| -rw-r--r-- | dwl.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| @@ -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;  		} | 
