From 6b1a4e6562cce57cd14cbb0c7b4c70b195a78f76 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Tue, 11 Jul 2023 16:48:11 +0100 Subject: [PATCH] kiosk-shell: Delete nonsensical is_mapped check A view is mapped if it's on a layer, so if we find it in a layer then we don't need to worry about whether or not it's mapped. Signed-off-by: Daniel Stone --- kiosk-shell/kiosk-shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiosk-shell/kiosk-shell.c b/kiosk-shell/kiosk-shell.c index 55a948a7..28805322 100644 --- a/kiosk-shell/kiosk-shell.c +++ b/kiosk-shell/kiosk-shell.c @@ -798,7 +798,7 @@ find_focus_successor(struct kiosk_shell_surface *shsurf, struct kiosk_shell_surface *view_shsurf; struct kiosk_shell_surface *root; - if (!view->is_mapped || view == shsurf->view) + if (view == shsurf->view) continue; /* pick views only on the same output */