summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2023-01-14 19:46:47 +0200
committerMarius Vlad <marius.vlad@collabora.com>2023-01-17 16:37:16 +0200
commit4003cfb04b7bae04c321b274b4e1bfae1222a327 (patch)
tree44a322e94162236526c253dd23c8de3d0f205cd3
parent7ef34e0c465a7596f87866e88bc5a9eed2ca7c05 (diff)
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 <marius.vlad@collabora.com> Change-Id: Ib964ebed2c189f82092ffcf4d54dee2cf22093e1
-rw-r--r--src/shell.c3
1 files changed, 3 insertions, 0 deletions
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);
}