From: Walter Lozano Date: Wed, 23 Sep 2020 12:41:49 +0000 (+0000) Subject: layout: Set active output NULL when displaying background X-Git-Tag: 10.91.0~26 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=1f888f2050ac50ec8c1750ff4f0e2c485936d7ed;p=src%2Fagl-compositor.git layout: Set active output NULL when displaying background Currently agl-compositor keeps track of the active app and uses this information to to also keep track of the previous one. This is useful to allow to show the previous activated app when deactivating the current one. However, when deactivating all the apps, for instance the background, this information is not saved, which causes that when activating and deactivating and new app, instead of the background a different app shows. This patch sets output->previous_active = NULL when displaying the background to overcome this issue. Signed-off-by: Walter Lozano Change-Id: I29c3f8972d6055d2387e0fdcbb28574d3d2e38a7 --- diff --git a/src/layout.c b/src/layout.c index dd7e75f..1895a07 100644 --- a/src/layout.c +++ b/src/layout.c @@ -824,6 +824,7 @@ ivi_layout_deactivate(struct ivi_compositor *ivi, const char *app_id) weston_layer_entry_remove(&view->layer_link); weston_output_damage(ivi_output->output); + ivi_output->active = NULL; } } else { struct weston_desktop_surface *dsurface;