shell: Check for invalid outputs passed on when activating 44/28544/1
authorMarius Vlad <marius.vlad@collabora.com>
Wed, 15 Feb 2023 10:19:42 +0000 (12:19 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Wed, 1 Mar 2023 10:35:23 +0000 (12:35 +0200)
commitb0dfbd7b26974a9251aaeb6d0c40ec724f72ea71
tree90b3c0fc14fc611bcbe509cdefc62d5b4000e98e
parent39ad965461050db222bb71ddcf49709124160d26
shell: Check for invalid outputs passed on when activating

Connector hot-plugging would generate new wl_output object, which the
client might re-use so rather than blindly trusting the client, make
sure that the output we're getting is really one suitable.

This should avoid getting an incorrect output upon re-plugging in a
connector.

Bug-AGL: SPEC-4705
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I732283fc16841e0e57ddbec5d8bd2333d5028433
(cherry picked from commit 02fcb317161c08bcf02093a74abe18d4a4392335)
src/shell.c