]> git.sur5r.net Git - i3/i3/commit
Determine focused workspace correctly when moving workspace to output. 2232/head
authorIngo Bürk <ingo.buerk@tngtech.com>
Thu, 25 Feb 2016 18:12:09 +0000 (19:12 +0100)
committerIngo Bürk <ingo.buerk@tngtech.com>
Thu, 25 Feb 2016 18:12:09 +0000 (19:12 +0100)
commita9d8184c732ef5af7b6c13f5b65176de8e02fbfd
treea857e662f908b80bcd3c168e892a146f86cfa39f
parenteb631ce3c38729bcd91d41a9d3801da097e8c313
Determine focused workspace correctly when moving workspace to output.

This patch correctly determines the previously focused workspace on the
target output when moving a workspace to another output. Before, we used
nodes_head for this, which will not actually return the previously focused
workspace, but just the first workspace on that output. Hence, we now use
focus_head instead.

This bug was introduced all the way back in 1e143fea when the feature of
moving workspaces to another output was first implemented.

fixes #2229
src/workspace.c
testcases/t/530-bug-2229.t [new file with mode: 0644]