From 4003cfb04b7bae04c321b274b4e1bfae1222a327 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Sat, 14 Jan 2023 19:46:47 +0200 Subject: [PATCH] shell: Reset the area activation Re-starting the shell client wouldn't reset the activation area, which might be rather confusing, so better be re-initialize it as to be able to switch in-between various configurations. Bug-AGL: SPEC-4674 Signed-off-by: Marius Vlad Change-Id: Ib964ebed2c189f82092ffcf4d54dee2cf22093e1 --- src/shell.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shell.c b/src/shell.c index d9d3c2d..640cc73 100644 --- a/src/shell.c +++ b/src/shell.c @@ -1611,6 +1611,8 @@ unbind_agl_shell(struct wl_resource *resource) } wl_list_for_each(output, &ivi->outputs, link) { + struct weston_geometry area = {}; + /* reset the active surf if there's one present */ if (output->active) { output->active->view->is_mapped = false; @@ -1620,6 +1622,7 @@ unbind_agl_shell(struct wl_resource *resource) output->active = NULL; } + output->area_activation = area; insert_black_curtain(output); } -- 2.16.6