diff options
author | 2020-02-05 21:59:01 +0200 | |
---|---|---|
committer | 2020-02-06 13:40:11 +0200 | |
commit | ab2e660c891df7188f2803a88d172627d66294fe (patch) | |
tree | ae36473f4d4a794785138f07373615af4439f028 /src/layout.c | |
parent | f8457f6d62370f08a4764f44c670bd2368e80415 (diff) |
desktop: Reset the active surface
In case a previously active surface gets destroyed, we'll have a hard
time detecting if it already been active when switching to it, as it
will point a surface no longer present.
Resets the ivi active surface in case the desktop surface itself is
destroyed.
Bug-AGL: SPEC-3159
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I11406888ece29da4b97ec4c28c746ac397742753
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 3166e92..b5bafe3 100644 --- a/src/layout.c +++ b/src/layout.c @@ -212,6 +212,7 @@ ivi_layout_activate_complete(struct ivi_output *output, /* force repaint of the entire output */ weston_output_damage(output->output); + surf->desktop.last_output = surf->desktop.pending_output; surf->desktop.pending_output = NULL; } |