summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2023-03-02 19:05:51 +0200
committerMarius Vlad <marius.vlad@collabora.com>2023-03-03 12:23:07 +0200
commit9eb8ca6ac7473107ebe391c2f78543e92e461240 (patch)
tree548b8f28f5be8ddc093e3a4acf868a0f0ce3b441
parent359a0612e48d7d21d5247199ca57063bd5965f71 (diff)
shell: Reset normal state when getting back to maximized
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
-rw-r--r--src/shell.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shell.c b/src/shell.c
index fbd1b72..a3eb31f 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -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);