From: Marius Vlad Date: Sat, 14 Jan 2023 17:46:47 +0000 (+0200) Subject: shell: Reset the area activation X-Git-Tag: 17.90.0~49 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=4003cfb04b7bae04c321b274b4e1bfae1222a327;p=src%2Fagl-compositor.git 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 --- 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); }