homescreenhandler: Avoid using a stale wl_output 48/28648/1 octopus sandbox/mvlad/update-homescreen
authorMarius Vlad <marius.vlad@collabora.com>
Wed, 15 Feb 2023 16:40:03 +0000 (18:40 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Fri, 14 Apr 2023 19:44:52 +0000 (22:44 +0300)
commitccfd10dda949b70f0df456536e548bf976ae5623
tree03a64828a0daa680c5648feacab426b9b76123a5
parentb8786003d749d0fed1dff54dd0fd9862367338f6
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
(cherry picked from commit 4c7852e6ff7fde510f4f11c21bec817583397951)
homescreen/src/homescreenhandler.cpp
homescreen/src/homescreenhandler.h