layout: Add a wrapper for adding the view to the hidden layer 84/27684/2
authorMarius Vlad <marius.vlad@collabora.com>
Tue, 21 Jun 2022 11:13:56 +0000 (14:13 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Wed, 29 Jun 2022 12:13:53 +0000 (12:13 +0000)
commit2cc479fd8f3e53265efa093ca52e6e6f6b0faea7
treebaee1cee5362b8e3fa7a9bd7f771b07281f96602
parentbaf8a28e6329fdb6cdfb943925849d2cb6347730
layout: Add a wrapper for adding the view to the hidden layer

And with it, use it *as well* when detecting a surface shouldn't be
presented if activate-by-default is disabled. The reason for doing that
is to allow application the resize and receive frame events right after
the client shell has been started.

Doing it a later point it time, right when a potential activation could
come from a client, wouldn't really be useful as the client won't react
to configure events. This particular fix is for cases where the
activate by default is disabled and the application itself was added
*before* the client shell sent the ready request.

Bug-AGL: SPEC-4423
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Reported-by: Vasyl Vavrychuk <vasyl.vavrychuk@opensynergy.com>
Change-Id: I5b08d2ff65fca28126608c2677ec9b558a34caa1
src/layout.c