DSPolicyArea: attach a zone to the corresponding seat 52/241752/1
authorSung-Jin Park <sj76.park@samsung.com>
Thu, 6 Aug 2020 08:10:56 +0000 (17:10 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Thu, 20 Aug 2020 10:10:09 +0000 (19:10 +0900)
Change-Id: I5e5a33f5b8f8a7dc9c9adce3d5168085a576be15
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
src/DSPolicyArea/DSPolicyArea.cpp

index 3c39ca7..55d86bf 100644 (file)
@@ -82,7 +82,13 @@ bool DSPolicyAreaPrivate::setSize(int width, int height)
 
 bool DSPolicyAreaPrivate::attachSeat(std::shared_ptr<DSSeat> seat)
 {
+       if (__seat)
+       {
+               DSLOG_INF("DSPolicyAreaPrivate", "Seat has been changed. (%p -> %p)", __seat, seat);
+       }
+
        __seat = seat;
+       __seat->attachZone(__zone);
 
        return true;
 }