aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Vlad <marius.vlad@collabora.com>2020-05-16 16:18:50 +0300
committerMarius Vlad <marius.vlad@collabora.com>2020-05-18 13:01:34 +0300
commitfa0a2232901d9ed3b692cca973b3f2532166937e (patch)
tree9ae881883914c67b51433224598ccb9c80d790dd
parentd2ae339c3d5d66d439b628b1c18a22215c044dd5 (diff)
shell: Determine the role type
Now that we have the ability to determine the role type between pop-up diaglos, full-screen, or split ones use the wrappers installed previously to make use of them. Keep the same functionality by activating the desktop surface if we determine we have one. Signed-off-by: Marius Vlad <marius.vlad@collabora.com> Change-Id: Ibce3bc040ce3683ab41709d68d5fbf90d90ea539
-rw-r--r--src/shell.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/shell.c b/src/shell.c
index 4bfced3..f184c63 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -276,8 +276,10 @@ ivi_check_pending_desktop_surface(struct ivi_surface *surface)
return;
}
- /* if we end up here means we have a regular desktop app */
+ /* if we end up here means we have a regular desktop app and
+ * try to activate it */
ivi_set_desktop_surface(surface);
+ ivi_layout_desktop_committed(surface);
}
void
@@ -525,13 +527,7 @@ shell_ready(struct wl_client *client, struct wl_resource *shell_res)
wl_list_for_each_safe(surface, tmp, &ivi->pending_surfaces, link) {
wl_list_remove(&surface->link);
-
- if (ivi_check_pending_desktop_surface_popup(surface)) {
- ivi_set_desktop_surface_popup(surface);
- } else {
- ivi_set_desktop_surface(surface);
- ivi_layout_desktop_committed(surface);
- }
+ ivi_check_pending_desktop_surface(surface);
}
}