shell: Reset the area activation 85/28385/1
authorMarius Vlad <marius.vlad@collabora.com>
Sat, 14 Jan 2023 17:46:47 +0000 (19:46 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Tue, 17 Jan 2023 14:37:16 +0000 (16:37 +0200)
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

src/shell.c

index d9d3c2d..640cc73 100644 (file)
@@ -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);
        }