shell: Reset normal state when getting back to maximized 51/28551/1
authorMarius Vlad <marius.vlad@collabora.com>
Thu, 2 Mar 2023 17:05:51 +0000 (19:05 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Fri, 3 Mar 2023 10:23:07 +0000 (12:23 +0200)
When resetting back to normal, maximized state, reset also the state,
just in case we might to check it up latter on.

Bug-AGL: SPEC-4673
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I0107e6963c01bde22a5a3ab30f392cb618a4f258

src/shell.c

index fbd1b72..a3eb31f 100644 (file)
@@ -1532,6 +1532,7 @@ shell_set_app_normal(struct wl_client *client, struct wl_resource *shell_res,
 
        /* change the role */
        surf->role = IVI_SURFACE_ROLE_NONE;
+       surf->state = NORMAL;
        surf->desktop.pending_output = ivi_output;
 
        wl_list_remove(&surf->link);