diff options
author | Marius Vlad <marius.vlad@collabora.com> | 2024-01-30 16:10:35 +0200 |
---|---|---|
committer | Marius Vlad <marius.vlad@collabora.com> | 2024-02-22 13:51:33 +0000 |
commit | 1cbb6bdec4d1c0440356240e481e8dfa51a201f2 (patch) | |
tree | c908ecc7ef8d2ba336e0dd8ec1705c44100fd44d | |
parent | 594b5d1c6e1bc7eb8931dc58fbb62db81ae42ae0 (diff) |
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 <marius.vlad@collabora.com>
Change-Id: Ic2cc7fd2839f5a664957d3f111c400559d93cf3f
-rw-r--r-- | src/shell.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); |