diff options
author | Walter Lozano <walter.lozano@collabora.com> | 2020-09-23 12:41:49 +0000 |
---|---|---|
committer | Walter Lozano <walter.lozano@collabora.com> | 2020-09-28 12:17:42 -0300 |
commit | 1f888f2050ac50ec8c1750ff4f0e2c485936d7ed (patch) | |
tree | 3374b3987bf153b079f5dfa3cf13f57bac8fca92 /src/layout.c | |
parent | 0056122343c782902457802bb1ef6bde7c14d3c9 (diff) |
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 <walter.lozano@collabora.com>
Change-Id: I29c3f8972d6055d2387e0fdcbb28574d3d2e38a7
Diffstat (limited to 'src/layout.c')
-rw-r--r-- | src/layout.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |