2011-02-28 20:44:23 +01:00
|
|
|
#!perl
|
|
|
|
# vim:ts=4:sw=4:expandtab
|
|
|
|
#
|
|
|
|
# Regression: floating windows are tiling after restarting, closing them crashes i3
|
|
|
|
#
|
2011-03-09 20:25:17 +01:00
|
|
|
use i3test;
|
2011-02-28 20:44:23 +01:00
|
|
|
|
2011-03-09 20:25:17 +01:00
|
|
|
my $tmp = fresh_workspace;
|
2011-02-28 20:44:23 +01:00
|
|
|
|
|
|
|
cmd 'open';
|
2012-01-05 22:20:53 +01:00
|
|
|
cmd 'floating toggle';
|
|
|
|
|
|
|
|
my $ws = get_ws($tmp);
|
|
|
|
is(scalar @{$ws->{nodes}}, 0, 'no tiling nodes');
|
|
|
|
is(scalar @{$ws->{floating_nodes}}, 1, 'precisely one floating node');
|
2011-02-28 20:44:23 +01:00
|
|
|
|
2012-01-05 22:20:53 +01:00
|
|
|
cmd 'restart';
|
2011-02-28 20:44:23 +01:00
|
|
|
|
|
|
|
diag('Checking if i3 still lives');
|
|
|
|
|
|
|
|
does_i3_live;
|
|
|
|
|
2012-01-05 22:20:53 +01:00
|
|
|
$ws = get_ws($tmp);
|
|
|
|
is(scalar @{$ws->{nodes}}, 0, 'no tiling nodes');
|
|
|
|
is(scalar @{$ws->{floating_nodes}}, 1, 'precisely one floating node');
|
2011-03-09 20:25:17 +01:00
|
|
|
|
|
|
|
done_testing;
|