tests: use open_window to avoid motion notifies which in turn trigger endless loops
Using 'open' will not create an X11 window (while open_window does), so we will get spurious motion notify events when switching focus, leading to endless loops.
This commit is contained in:
parent
df9b338175
commit
a4a59a797f
|
@ -12,12 +12,12 @@ use i3test;
|
||||||
|
|
||||||
is(focused_ws, '1', 'starting on workspace 1');
|
is(focused_ws, '1', 'starting on workspace 1');
|
||||||
# ensure workspace 1 stays open
|
# ensure workspace 1 stays open
|
||||||
cmd 'open';
|
open_window;
|
||||||
|
|
||||||
cmd 'focus output right';
|
cmd 'focus output right';
|
||||||
is(focused_ws, '2', 'workspace 2 on second output');
|
is(focused_ws, '2', 'workspace 2 on second output');
|
||||||
# ensure workspace 2 stays open
|
# ensure workspace 2 stays open
|
||||||
cmd 'open';
|
open_window;
|
||||||
|
|
||||||
cmd 'focus output right';
|
cmd 'focus output right';
|
||||||
is(focused_ws, '1', 'back on workspace 1');
|
is(focused_ws, '1', 'back on workspace 1');
|
||||||
|
@ -25,8 +25,8 @@ is(focused_ws, '1', 'back on workspace 1');
|
||||||
# We don’t use fresh_workspace with named workspaces here since they come last
|
# We don’t use fresh_workspace with named workspaces here since they come last
|
||||||
# when using 'workspace next'.
|
# when using 'workspace next'.
|
||||||
cmd 'workspace 5';
|
cmd 'workspace 5';
|
||||||
# ensure workspace $tmp stays open
|
# ensure workspace 5 stays open
|
||||||
cmd 'open';
|
open_window;
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
# Use workspace next and verify the correct order.
|
# Use workspace next and verify the correct order.
|
||||||
|
|
Loading…
Reference in New Issue