shell: Display previously pending surface once the ready request was received 28/24428/2
authorMarius Vlad <marius.vlad@collabora.com>
Thu, 23 Apr 2020 12:55:34 +0000 (15:55 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Mon, 11 May 2020 08:18:32 +0000 (08:18 +0000)
commit63b6b6b1e140e0abb3bcc6b706ba7a57b5fceb04
tree9123ed5016b192d542fba07ca81519ea99d2bfe5
parent225415dcbada40cabc9bcaa5974ed5436c58b0e0
shell: Display previously pending surface once the ready request was received

Surfaces are being added to linked list of pending surfaces as long as
the 'ready' request wasn't received, and are being categorized as regular
apps once the 'ready' request is handled. But, in order to display it,
the surface has to be activated. With this patch we force to
display/show the last pending surface that was added before issueing
a 'ready' request.

Obviously, multiple surfaces of this kind will be displayed, but only
the last one will remain displayed on the output, hence the refernce of
just the last pending surface. A particular use-case that will benifit
from this is when for instance the launcher application is started
before homescreen. When homescreen starts it will also activate/display
the launcher surface.

Bug-AGL: SPEC-3341

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Iace641c3b65d0c5500fe336e592d2e8ada57d7e9
src/shell.c