]> git.corax.cc Git - mwm/commit
workspace: When the focused client is detached, focus on the next one
authorMatthias Kruk <m@m10k.eu>
Fri, 21 May 2021 21:14:33 +0000 (06:14 +0900)
committerMatthias Kruk <m@m10k.eu>
Fri, 21 May 2021 21:14:33 +0000 (06:14 +0900)
commit6d10a98bd71cbb88bc5063bb5eee6e6db2749d61
treef296819d0fe066b813791b109d3df7c9e1e88f26
parentac270766b78a43284eae4b73d2f46ed92ba241f4
workspace: When the focused client is detached, focus on the next one

When the focused client is detached from a workspace, the focus is moved
to the first client of the workspace. However, from a user point-of-view,
it seems better to move the focus to the next client.
This commit changes the workspace_detach_client() function to shift the
focus to the next client, if the focused client is removed.
workspace.c