summaryrefslogtreecommitdiff
path: root/kiosk-shell
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2023-08-08 12:37:29 +0300
committerMarius Vlad <marius.vlad0@gmail.com>2023-08-25 09:06:42 +0000
commita414d379fb34c3438c31afa0198f91a1c8bed295 (patch)
treeed20bc2e6bea773d8c0ecff99f3bff93569edc59 /kiosk-shell
parentd33636ae484dc8eb78c15456d7e379ea3684bb42 (diff)
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>
Diffstat (limited to 'kiosk-shell')
-rw-r--r--kiosk-shell/kiosk-shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kiosk-shell/kiosk-shell.c b/kiosk-shell/kiosk-shell.c
index 3dec0839..fc69dcb7 100644
--- a/kiosk-shell/kiosk-shell.c
+++ b/kiosk-shell/kiosk-shell.c
@@ -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;