mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-09-07 11:44:43 +00:00
fix crash when checkidleinhibitor
This commit is contained in:
parent
d34be5d545
commit
f831e4b46a
4
dwl.c
4
dwl.c
@ -657,8 +657,8 @@ checkidleinhibitor(struct wlr_surface *exclude)
|
||||
wl_list_for_each(inhibitor, &idle_inhibit_mgr->inhibitors, link) {
|
||||
struct wlr_surface *surface = wlr_surface_get_root_surface(inhibitor->surface);
|
||||
struct wlr_scene_tree *tree = surface->data;
|
||||
if (exclude != surface && (bypass_surface_visibility || (!tree
|
||||
|| wlr_scene_node_coords(&tree->node, &unused_lx, &unused_ly)))) {
|
||||
if (exclude != surface && (bypass_surface_visibility || (tree
|
||||
&& wlr_scene_node_coords(&tree->node, &unused_lx, &unused_ly)))) {
|
||||
inhibited = 1;
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user