From 1cbb6bdec4d1c0440356240e481e8dfa51a201f2 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Tue, 30 Jan 2024 16:10:35 +0200 Subject: [PATCH] shell: Reset active view to allow further activation Going back to regular, with a none orientation would allow to re-activate the window. This wouldn't happen because we haven't been able to reset the active window Keeps things sane for the user and would allow navigating back to those windows. Further patches should improve and avoid this entirely if the split window is sticky. Bug-AGL: SPEC-4839 Signed-off-by: Marius Vlad Change-Id: Ic2cc7fd2839f5a664957d3f111c400559d93cf3f --- src/shell.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/shell.c b/src/shell.c index 7f445e6..020c169 100644 --- a/src/shell.c +++ b/src/shell.c @@ -1947,6 +1947,11 @@ void shell_set_app_split(struct wl_client *client, struct wl_resource *res, _ivi_set_shell_surface_split(output->previous_active, NULL, reverse_orientation(orientation), false); + + if (orientation == AGL_SHELL_TILE_ORIENTATION_NONE && + output->active == surf) { + output->active = output->previous_active; + } } _ivi_set_shell_surface_split(surf, NULL, orientation, false); -- 2.16.6