X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fdesktop.c;fp=src%2Fdesktop.c;h=211c7e2f2402da757b6c536c78d9563c46dd462e;hb=52769b82974afda0b4bba8b0c98a996cb96cac06;hp=26491932812350eff7b557ba57d3b01344399a4b;hpb=2349f210e12b783f6a314b9331035ecd066707c7;p=src%2Fagl-compositor.git diff --git a/src/desktop.c b/src/desktop.c index 2649193..211c7e2 100644 --- a/src/desktop.c +++ b/src/desktop.c @@ -125,6 +125,16 @@ desktop_surface_removed(struct weston_desktop_surface *dsurface, void *userdata) else return; + /* resize the active surface to the original size */ + if (surface->role == IVI_SURFACE_ROLE_SPLIT_H || + surface->role == IVI_SURFACE_ROLE_SPLIT_V) { + if (output && output->active) { + ivi_layout_desktop_resize(output->active, output->area_saved); + } + /* restore the area back so we can re-use it again if needed */ + output->area = output->area_saved; + } + /* reset the active surface as well */ if (output && output->active && output->active == surface) { output->active->view->is_mapped = false;