package i3test;
# vim:ts=4:sw=4:expandtab
+use strict; use warnings;
use File::Temp qw(tmpnam tempfile tempdir);
use Test::Builder;
$lf = $focused[0];
last unless defined($con->{focus});
@focused = @{$con->{focus}};
- @cons = grep { $_->{id} == $lf } (@{$con->{nodes}}, @{$con->{'floating_nodes'}});
+ my @cons = grep { $_->{id} == $lf } (@{$con->{nodes}}, @{$con->{'floating_nodes'}});
$con = $cons[0];
}
$tmp = fresh_workspace;
-$first = open_window($x, '#ff0000'); # window 5
-$second = open_window($x, '#00ff00'); # window 6
-my $third = open_window($x, '#0000ff'); # window 7
+$first = open_window($x, { background_color => '#ff0000' }); # window 5
+$second = open_window($x, { background_color => '#00ff00' }); # window 6
+my $third = open_window($x, { background_color => '#0000ff' }); # window 7
is($x->input_focus, $third->id, 'last container focused');