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.
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.