layout: Fix no-op check due to invalid checks 23/28723/2
authorMarius Vlad <marius.vlad@collabora.com>
Wed, 26 Apr 2023 06:49:08 +0000 (09:49 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Wed, 3 May 2023 15:46:19 +0000 (18:46 +0300)
commit998097db427c6aeb61e62cd6cf7ad3821e7d0372
tree4356fb7e0195570123a726cc3d2db6319105103f
parentd5d2af73456fbaac69084bbd04838fcc1aed71a9
layout: Fix no-op check due to invalid checks

Checking both width and height isn't a strict requirement, either can
different. This unties the check such that we can actually move
windows/applications between different outputs.

We also add here an explicit surface damage as we're removing the view
from the layer.

Bug-AGL: SPEC-4773
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Ie91b8c0fd2e9357fe00fd693e2a70fa3b4b4d31a
src/layout.c