shell: Check for invalid outputs passed on when activating 03/28503/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, 15 Feb 2023 15:47:20 +0000 (17:47 +0200)
commit02fcb317161c08bcf02093a74abe18d4a4392335
treebc5d52f28fa80473e06625542b8d27ec4732c43d
parentd98b08f1fcb6ff6ccc762f149c8aa53a6921ad60
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
src/shell.c