X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fdesktop.c;h=0fca2fd3241a36b3cffe271b3c597f4f07a764c9;hb=39ea644837dd29cd47a579a9703b43458187f82b;hp=5b7b2e5eea4b9fff72563145f9d5d32d65e18508;hpb=572d0eac44f115c6a97dae826afd4c6e43fbe4a7;p=src%2Fagl-compositor.git diff --git a/src/desktop.c b/src/desktop.c index 5b7b2e5..0fca2fd 100644 --- a/src/desktop.c +++ b/src/desktop.c @@ -139,8 +139,13 @@ desktop_surface_removed(struct weston_desktop_surface *dsurface, void *userdata) struct ivi_output *output = ivi_layout_get_output_from_surface(surface); /* special corner-case, pending_surfaces which are never activated or - * being assigned an output might land here so just remove the surface */ - if (output == NULL && surface->role == IVI_SURFACE_ROLE_NONE) + * being assigned an output might land here so just remove the surface; + * + * the DESKTOP role can happen here as well, because we can fall-back + * to that when we try to determine the role type. Application that + * do not set the app_id will be land here, when destroyed */ + if (output == NULL && (surface->role == IVI_SURFACE_ROLE_NONE || + surface->role == IVI_SURFACE_ROLE_DESKTOP)) goto skip_output_asignment; assert(output != NULL);