]> git.sur5r.net Git - i3/i3/commit
Fix two focus issues when switching/moving workspaces
authorPeter Bui <pnutzh4x0r@gmail.com>
Mon, 8 Aug 2011 21:55:37 +0000 (17:55 -0400)
committerMichael Stapelberg <michael@stapelberg.de>
Tue, 9 Aug 2011 08:01:08 +0000 (10:01 +0200)
commitd8cf36ce83d2d9d6653ff08b1b2308c6f1bf1acd
tree60e3252d15f5ef4ba3bd189f48f024fd80aa22b5
parent042b10e0681e5274f81fdaf0d25eb1aa5c145a78
Fix two focus issues when switching/moving workspaces

1. Fix focus when moving to same workspace.

If we have a single window on a workspace and we switch to the same
worksapce, focus_next will be the workspace container, rather than the
current window, so simply call con_descend_focused to ensure we set the
focus to a window.

2. Fix focus when moving a container to a visible workspace.

Call workspace_show before we attaching to new visible workspace, so we
don't get in the weird situation where target workspace has focused
window, but it isn't considered focused.
src/con.c