testcases: drop open_window()s $x parameter, use global one instead
This commit is contained in:
committed by
Michael Stapelberg
parent
e9acd36ce4
commit
fce7570f96
@ -8,7 +8,7 @@ use i3test;
|
||||
subtest 'Window without WM_TAKE_FOCUS', sub {
|
||||
fresh_workspace;
|
||||
|
||||
my $window = open_window($x);
|
||||
my $window = open_window;
|
||||
|
||||
ok(!wait_for_event(1, sub { $_[0]->{response_type} == 161 }), 'did not receive ClientMessage');
|
||||
|
||||
@ -20,7 +20,7 @@ subtest 'Window with WM_TAKE_FOCUS', sub {
|
||||
|
||||
my $take_focus = $x->atom(name => 'WM_TAKE_FOCUS');
|
||||
|
||||
my $window = open_window($x, {
|
||||
my $window = open_window({
|
||||
dont_map => 1,
|
||||
protocols => [ $take_focus ],
|
||||
});
|
||||
|
Reference in New Issue
Block a user