shell: Assume consistency with the desktop roles 98/24998/3
authorMarius Vlad <marius.vlad@collabora.com>
Sun, 12 Jul 2020 16:26:22 +0000 (19:26 +0300)
committerScott Murray <scott.murray@konsulko.com>
Wed, 29 Jul 2020 13:11:43 +0000 (13:11 +0000)
While looking into activation by default of other surfaces, noticed that
we're missing consistency on how we handle other types of surface roles.

This patch, activate all other surfaces by default when starting up,
even if they are started before or after the client shell.
Expecting and assuming the same behaviour is important into trying
to establish some common work-flow for applications.

Bug-AGL: SPEC-3494

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I90e764c6c3a7ed543934ee6f68fa716d90ff151e

src/shell.c

index 4886a0a..2978cc3 100644 (file)
@@ -366,24 +366,28 @@ ivi_check_pending_desktop_surface(struct ivi_surface *surface)
        ret = ivi_check_pending_desktop_surface_popup(surface);
        if (ret) {
                ivi_set_desktop_surface_popup(surface);
+               ivi_layout_popup_committed(surface);
                return;
        }
 
        ret = ivi_check_pending_desktop_surface_split(surface);
        if (ret) {
                ivi_set_desktop_surface_split(surface);
+               ivi_layout_split_committed(surface);
                return;
        }
 
        ret = ivi_check_pending_desktop_surface_fullscreen(surface);
        if (ret) {
                ivi_set_desktop_surface_fullscreen(surface);
+               ivi_layout_fullscreen_committed(surface);
                return;
        }
 
        ret = ivi_check_pending_desktop_surface_remote(surface);
        if (ret) {
                ivi_set_desktop_surface_remote(surface);
+               ivi_layout_desktop_committed(surface);
                return;
        }