X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fdesktop.c;h=7875eb913a85a99860b0fac2bf89d88c52b46bba;hb=refs%2Fchanges%2F12%2F29612%2F6;hp=3fd09bc69657a1aff393c688fe842f7f95b29df8;hpb=8a7f3fbbf0fd94bb1c29c59663392506a213c4b1;p=src%2Fagl-compositor.git diff --git a/src/desktop.c b/src/desktop.c index 3fd09bc..7875eb9 100644 --- a/src/desktop.c +++ b/src/desktop.c @@ -312,6 +312,7 @@ desktop_surface_removed(struct weston_desktop_surface *dsurface, void *userdata) output->area = output->area_saved; } + /* reset the active surface as well */ if (output && output->active && output->active == surface) { output->active->view->is_mapped = false; @@ -342,6 +343,14 @@ desktop_surface_removed(struct weston_desktop_surface *dsurface, void *userdata) weston_view_destroy(surface->view); } + if (surface->role == IVI_SURFACE_ROLE_TILE) { + ivi_layout_reset_split_surfaces(surface->ivi); + // activate previous when resizing back to give input set + // output active for allowing to resizing again if needed + if (output->previous_active) + ivi_layout_activate_by_surf(output, output->previous_active); + } + /* invalidate agl-shell surfaces so we can re-use them when * binding again */ if (surface->role == IVI_SURFACE_ROLE_PANEL) {