Make sure sticky windows pop to the front if they get sticky while not being on a visible workspace.
This commit also reworks the way focusing sticky windows is prevented by not focusing them temporarily at all, but preventing the focus in the first place.
This commit is contained in:
@ -77,6 +77,20 @@ cmd 'workspace ' . $ws;
|
||||
is(get_focused($ws), $focused, 'the tiling container has focus');
|
||||
cmd '[class="findme"] kill';
|
||||
|
||||
###############################################################################
|
||||
# 5: Given a floating container on a non-visible workspace, when the window
|
||||
# is made sticky, then the window immediately jumps to the currently
|
||||
# visible workspace.
|
||||
###############################################################################
|
||||
fresh_workspace;
|
||||
open_floating_window(wm_class => 'findme');
|
||||
cmd 'mark sticky';
|
||||
$ws = fresh_workspace;
|
||||
cmd '[con_mark=sticky] sticky enable';
|
||||
|
||||
is(@{get_ws($ws)->{floating_nodes}}, 1, 'the sticky window jumps to the front');
|
||||
cmd '[class="findme"] kill';
|
||||
|
||||
###############################################################################
|
||||
|
||||
done_testing;
|
||||
|
Reference in New Issue
Block a user