kiosk-shell: Make sure we have seat focused_surface
We might not have a focused_surface if the surface was only added and removed, without any commit which would actually allow to set a focused_surface in kiosk_shell_surface_activate(). Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
parent
d33636ae48
commit
a414d379fb
|
@ -857,7 +857,7 @@ desktop_surface_removed(struct weston_desktop_surface *desktop_surface,
|
|||
* Apply that only on the same output to avoid incorrectly picking an
|
||||
* invalid surface, which could happen if the view being destroyed
|
||||
* is on a output different than the focused_surface output */
|
||||
if (seat && kiosk_seat &&
|
||||
if (seat && kiosk_seat && kiosk_seat->focused_surface &&
|
||||
(kiosk_seat->focused_surface == surface ||
|
||||
surface->output != kiosk_seat->focused_surface->output)) {
|
||||
struct kiosk_shell_surface *successor;
|
||||
|
|
Loading…
Reference in New Issue