AsteroidOS / asteroid-launcher

AsteroidOS launcher and Wayland compositor based on Qt5, QML and QtWayland via Lipstick.
Other
45 stars 34 forks source link

Fix launcher with fixed qtwayland app close behaviour #169

Closed dodoradio closed 9 months ago

dodoradio commented 1 year ago

If we merge https://github.com/AsteroidOS/meta-asteroid/pull/180 , asteroid-launcher may hang after applications are closed as they currently keep focus. This commit fixes that by making the application invisible as soon as it is dismissed, which allows it to finish closing itself in the background. The application layer is made visible as soon as another application is added to the stack. This does assume that applications are fine with closing themselves in the background. This might not be ideal, but it's not a regression as applications would previously just crash when dismissed by the user.