Bugfix: Do not move focus if a container is moved across outputs
fixes #809 This makes the moving behavior more consistent. If you want to focus the workspace you are moving to, just chain the keybinding in your config file: bindsym $mod+Shift+1 move workspace 1; workspace 1
This commit is contained in:
committed by
Michael Stapelberg
parent
d36e2a70bf
commit
b565bfca13
@ -75,16 +75,19 @@ my ($nodes, $focus) = get_ws_content('1');
|
||||
is($nodes->[0]->{window}, $win1->id, 'window 1 on workspace 1');
|
||||
|
||||
cmd 'move workspace next';
|
||||
cmd '[id="' . $win1->id . '"] focus';
|
||||
|
||||
($nodes, $focus) = get_ws_content('2');
|
||||
is($nodes->[1]->{window}, $win1->id, 'window 1 on workspace 2 after moving');
|
||||
|
||||
cmd 'move workspace prev';
|
||||
cmd '[id="' . $win1->id . '"] focus';
|
||||
|
||||
($nodes, $focus) = get_ws_content('1');
|
||||
is($nodes->[0]->{window}, $win1->id, 'window 1 on workspace 1');
|
||||
|
||||
cmd 'move workspace next_on_output';
|
||||
cmd '[id="' . $win1->id . '"] focus';
|
||||
|
||||
($nodes, $focus) = get_ws_content('5');
|
||||
is($nodes->[1]->{window}, $win1->id, 'window 1 on workspace 5 after moving');
|
||||
|
Reference in New Issue
Block a user