shell: Fix passing maximized state from the start 64/26864/1
authorMarius Vlad <marius.vlad@collabora.com>
Thu, 4 Nov 2021 15:32:28 +0000 (17:32 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Fri, 12 Nov 2021 16:49:34 +0000 (18:49 +0200)
commit10d2c1d637e9ef8759e1756ef626ab24aed7c668
treeb2a33ebe3d89ff3f581b68d801e7981db2f2136f
parentbd4c81d5f90d466df8019d19dca4856aa7a5fa80
shell: Fix passing maximized state from the start

We've added an optimization where we where sending to regular (desktop)
surfaces from the beginning the maximized state, together with the size
whenever the client signaled that it is ready to present.

That optimization failed to take into account other potential roles,
more importanly, the pop-op role which should not be getting any window
state, and implicitly shouldn't be getting any surface dimensions,
leaving it to the client to decide that. Patch checks all pending lists
to make sure we're not skipping any on purpose.

Bug-AGL: SPEC-4119

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I4f8c62af545c5955e7fa41c3fd73f52d6c73b600
src/desktop.c
src/ivi-compositor.h
src/shell.c