mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-28 10:34:50 +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) {
|
wl_list_for_each(inhibitor, &idle_inhibit_mgr->inhibitors, link) {
|
||||||
struct wlr_surface *surface = wlr_surface_get_root_surface(inhibitor->surface);
|
struct wlr_surface *surface = wlr_surface_get_root_surface(inhibitor->surface);
|
||||||
struct wlr_scene_tree *tree = surface->data;
|
struct wlr_scene_tree *tree = surface->data;
|
||||||
if (exclude != surface && (bypass_surface_visibility || (!tree
|
if (exclude != surface && (bypass_surface_visibility || (tree
|
||||||
|| wlr_scene_node_coords(&tree->node, &unused_lx, &unused_ly)))) {
|
&& wlr_scene_node_coords(&tree->node, &unused_lx, &unused_ly)))) {
|
||||||
inhibited = 1;
|
inhibited = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user