layout: Fix split role sending invalid dimensions 45/26245/1
authorMarius Vlad <marius.vlad@collabora.com>
Wed, 7 Apr 2021 19:16:02 +0000 (22:16 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Thu, 8 Apr 2021 13:48:00 +0000 (16:48 +0300)
commite35c7858a788b468a317dc46520e03f14599cb0b
tree88e60007ea5265000b3491888f015b1f71831efd
parent80febb3fbcebe88a274ffa5109784d5f0ad69ca5
layout: Fix split role sending invalid dimensions

As we send from the beginning/start the size for the client, we'll be
missing a checking when using split type of surfaces, which will result
in invalid width/height passed to clients on configure events. Avoid
using it entirely and assume for split roles to use half of the output
by default.

Bug-AGL: SPEC-3881

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