Use agl-shell-desktop protocol to keep track of closed windows 95/27095/4
authorArnaud Ferraris <arnaud.ferraris@collabora.com>
Tue, 18 Jan 2022 11:52:43 +0000 (12:52 +0100)
committerArnaud Ferraris <arnaud.ferraris@collabora.com>
Thu, 20 Jan 2022 16:25:38 +0000 (17:25 +0100)
commita3c4beb8a9d1a01a4a29434e8319be7ce3f0d42f
treef3e10f66b51ae1064e91275f3920e0a1e2258a38
parent20970d846906a070305d8e96cf0735bf7fd831b1
Use agl-shell-desktop protocol to keep track of closed windows

Currently, we have no way of knowing when the main window of an
application is closed unless this action terminates the app. Hooking up
the `agl-shell-desktop` protocol allows us to be notified when this
happens, so we can instruct `homescreenhandler` to switch back to the
previously active app.

Bug-AGL: SPEC-4222
Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
Change-Id: I26dfaccce8894c2599afd9b14349b0703727d47a
homescreen/homescreen.pro
homescreen/src/main.cpp