X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=inline;f=src%2Flayout.c;fp=src%2Flayout.c;h=079325e9de0dc79fc940ca0010707085f2061605;hb=9d29ef9fdb4a236affaec23f050baad0cfca3659;hp=57992ca0d1b5dd3a678ba5e65e087313f73ab918;hpb=8df7681a823e5e6f7ead5150abf65dd84d05aecd;p=src%2Fagl-compositor.git diff --git a/src/layout.c b/src/layout.c index 57992ca..079325e 100644 --- a/src/layout.c +++ b/src/layout.c @@ -324,6 +324,13 @@ ivi_layout_desktop_committed(struct ivi_surface *surf) /* check first if there aren't any outputs being set */ r_output = ivi_layout_find_app_id(app_id, surf->ivi); + if (r_output) { + struct weston_view *view = r_output->fullscreen_view.fs->view; + if (view->is_mapped || view->surface->is_mapped) + remove_black_surface(r_output); + } + + /* try finding an output with a background and use that */ if (!r_output) r_output = ivi_layout_find_bg_output(surf->ivi);