2011-01-27 23:25:36 +01: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
|
|
|
|
#
|
2011-03-09 20:25:17 +01:00
|
|
|
use i3test;
|
2011-01-27 23:25:36 +01:00
|
|
|
|
2011-11-23 12:57:13 +01:00
|
|
|
sub sync_cmd {
|
|
|
|
cmd @_;
|
|
|
|
sync_with_i3;
|
|
|
|
}
|
|
|
|
|
2011-03-09 20:25:17 +01:00
|
|
|
my $tmp = fresh_workspace;
|
2011-01-27 23:25:36 +01:00
|
|
|
|
2011-11-22 00:47:32 +01:00
|
|
|
my $left = open_window;
|
|
|
|
my $mid = open_window;
|
|
|
|
my $right = open_window;
|
2011-01-27 23:25:36 +01:00
|
|
|
|
|
|
|
# go to workspace level
|
2012-05-27 06:44:29 +02:00
|
|
|
sync_cmd 'focus parent';
|
2011-01-27 23:25:36 +01:00
|
|
|
|
|
|
|
# make it floating
|
2011-11-23 12:57:13 +01:00
|
|
|
sync_cmd 'mode toggle';
|
2011-01-27 23:25:36 +01:00
|
|
|
|
|
|
|
# move the con outside the floating con
|
2011-11-23 12:57:13 +01:00
|
|
|
sync_cmd 'move up';
|
2011-01-27 23:25:36 +01:00
|
|
|
|
2011-01-28 01:21:38 +01:00
|
|
|
does_i3_live;
|
2011-02-01 18:18:07 +01:00
|
|
|
|
|
|
|
# move another con outside
|
2011-11-23 12:57:13 +01:00
|
|
|
sync_cmd '[id="' . $mid->id . '"] focus';
|
|
|
|
sync_cmd 'move up';
|
2011-02-01 18:18:07 +01:00
|
|
|
|
|
|
|
does_i3_live;
|
2011-03-09 20:25:17 +01:00
|
|
|
|
|
|
|
done_testing;
|