homescreenhandler: keep track of active apps 94/27094/3
authorArnaud Ferraris <arnaud.ferraris@collabora.com>
Tue, 18 Jan 2022 11:47:02 +0000 (12:47 +0100)
committerArnaud Ferraris <arnaud.ferraris@collabora.com>
Thu, 20 Jan 2022 16:25:38 +0000 (17:25 +0100)
commit20970d846906a070305d8e96cf0735bf7fd831b1
tree2dc594f9436a6e57f4558af141075a7f920243e6
parent37ba3ff90d878a135e347508505657e3d56c5edd
homescreenhandler: keep track of active apps

When the current app window is closed, the current behavior depends on
whether this action terminates the app:
- if the app is terminated, then we switch back to the launcher
- in the other case, we display the background, even if other apps are
  running

In order to implement a better behavior, we should keep track of active
apps and switch back to the previously active one when the current app
window is closed.

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