2011-01-27 17:25:36 -05:00
|
|
|
#!perl
|
|
|
|
# vim:ts=4:sw=4:expandtab
|
|
|
|
#
|
|
|
|
# Regression test for moving a con outside of a floating con when there are no
|
|
|
|
# tiling cons on a workspace
|
|
|
|
#
|
|
|
|
use X11::XCB qw(:all);
|
|
|
|
use Time::HiRes qw(sleep);
|
2011-03-09 14:25:17 -05:00
|
|
|
use i3test;
|
2011-01-27 17:25:36 -05:00
|
|
|
|
|
|
|
BEGIN {
|
|
|
|
use_ok('X11::XCB::Window');
|
|
|
|
}
|
|
|
|
|
|
|
|
my $x = X11::XCB::Connection->new;
|
|
|
|
|
2011-03-09 14:25:17 -05:00
|
|
|
my $tmp = fresh_workspace;
|
2011-01-27 17:25:36 -05:00
|
|
|
|
2011-09-24 10:11:37 -04:00
|
|
|
my $left = open_window($x);
|
|
|
|
my $mid = open_window($x);
|
|
|
|
my $right = open_window($x);
|
2011-01-27 17:25:36 -05:00
|
|
|
|
|
|
|
# go to workspace level
|
|
|
|
cmd 'level up';
|
|
|
|
sleep 0.25;
|
|
|
|
|
|
|
|
# make it floating
|
|
|
|
cmd 'mode toggle';
|
|
|
|
sleep 0.25;
|
|
|
|
|
|
|
|
# move the con outside the floating con
|
|
|
|
cmd 'move before v';
|
|
|
|
sleep 0.25;
|
|
|
|
|
2011-01-27 19:21:38 -05:00
|
|
|
does_i3_live;
|
2011-02-01 12:18:07 -05:00
|
|
|
|
|
|
|
# move another con outside
|
|
|
|
cmd '[id="' . $mid->id . '"] focus';
|
|
|
|
cmd 'move before v';
|
|
|
|
sleep 0.25;
|
|
|
|
|
|
|
|
does_i3_live;
|
2011-03-09 14:25:17 -05:00
|
|
|
|
|
|
|
done_testing;
|