X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fshell.c;h=020c16958fa379cb64d684d32d5df8c6d95f4227;hb=1cbb6bdec4d1c0440356240e481e8dfa51a201f2;hp=7f445e635a00724711a4adf0b7c86ee8020d5182;hpb=594b5d1c6e1bc7eb8931dc58fbb62db81ae42ae0;p=src%2Fagl-compositor.git 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);