mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-01 19:52:53 +00:00
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:
parent
751c1c9496
commit
d33636ae48
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue