bakkeby / dwm-flexipatch

A dwm build with preprocessor directives to decide which patches to include during build time
MIT License
1.18k stars 239 forks source link

Fix: When swallowing or unswallowing a sticky client, the focus will lose. #397

Closed ysl2 closed 11 months ago

ysl2 commented 1 year ago

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.

ysl2 commented 11 months ago

Close this beacuse dear author might not want to merge.