Due to the new focus strategy in master branch, when unswallowing a sticky client, the focus will lose. This PR intends to solve this. This is useful when a sticky and swallowing client is displaying video with Google Chrome, then if we kill the Chrome, the client will be back to terminal, but the focus will immediately change to the other non-sticky client. But just want to close the terminal. So have to go back to the sticky client, then close it. This PR solves this issue. After killing the Chrome, the focus still be in this client, and we can then close the terminal directly, instead of re-moving focus to it.
Update: A new commit to fix focus lose when swallowing a sticky client.
Due to the new focus strategy in master branch, when unswallowing a sticky client, the focus will lose. This PR intends to solve this. This is useful when a sticky and swallowing client is displaying video with Google Chrome, then if we kill the Chrome, the client will be back to terminal, but the focus will immediately change to the other non-sticky client. But just want to close the terminal. So have to go back to the sticky client, then close it. This PR solves this issue. After killing the Chrome, the focus still be in this client, and we can then close the terminal directly, instead of re-moving focus to it.
Update: A new commit to fix focus lose when swallowing a sticky client.