layout: Fix split role sending invalid dimensions
authorMarius Vlad <marius.vlad@collabora.com>
Wed, 7 Apr 2021 19:16:02 +0000 (22:16 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Fri, 16 Apr 2021 07:57:24 +0000 (10:57 +0300)
commit6ee46dc96cc7614fdf8fb1fe675af78b3201aecb
tree1f2530689e47d699a06594cd9e57940ae1c3374b
parent32ee06093b8cbde4369dcb0ad2decb969a43c844
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.

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