homescreenhandler: Avoid using a stale wl_output 07/28507/2
authorMarius Vlad <marius.vlad@collabora.com>
Wed, 15 Feb 2023 16:40:03 +0000 (18:40 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Wed, 15 Feb 2023 16:45:05 +0000 (18:45 +0200)
commit4c7852e6ff7fde510f4f11c21bec817583397951
tree1c790b5396f03186636d4a3c7599d5df2156ca4a
parent7ff53ae1b58a16e7fb7603195e71c510dbec4ae8
homescreenhandler: Avoid using a stale wl_output

Rather than storing wl_output when creating a HomeScreenHandler object,
retrieve the output at activation. Presumably, we could use Screen and
from there get it but seems to be easier this way.

Re-plugging the connector back and forth would result in a stale wl_output,
so this would retrieve it always as the currently enabled/active one.

Bug-AGL: SPEC-4705
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Id54c1f253b094e196c6bd367c7419c0ec5860d5f
homescreen/src/homescreenhandler.cpp
homescreen/src/homescreenhandler.h