kiosk-shell: Don't attempt to activate a window

Without a active_surface_tree there's no point in attempting to access
the shell surfaces list, nor we're going to to have a temorary list
based on it.

This might happen in situations where
kiosk_shell_output_set_active_surface_tree() is being passed a NULL shell
surface root.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
Marius Vlad 2023-08-08 12:29:56 +03:00 committed by Marius Vlad
parent 751c1c9496
commit d33636ae48

View file

@ -575,6 +575,9 @@ kiosk_shell_output_raise_surface_subtree(struct kiosk_shell_output *shoutput,
wl_list_init(&tmp_list);
if (!shoutput->active_surface_tree)
return;
/* Move all shell surfaces in the active surface tree starting at
* shroot to the tmp_list while maintaining the relative order. */
wl_list_for_each_reverse_safe(s, tmp_s,