X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fshell.c;h=020c16958fa379cb64d684d32d5df8c6d95f4227;hb=refs%2Fchanges%2F15%2F29615%2F6;hp=7f445e635a00724711a4adf0b7c86ee8020d5182;hpb=09fa5536e759792c80341305a536cd59aa801c6d;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);