CONFIG BREAK: rename 'mode floating/tiling' to 'floating enable/disable'

The three different variants now:
   floating enable
   floating disable
   floating toggle
This commit is contained in:
Michael Stapelberg
2011-06-10 02:06:47 +02:00
parent 9bbb37bb55
commit bd49c80d5f
8 changed files with 27 additions and 18 deletions

View File

@ -47,7 +47,7 @@ $tmp2 = get_unused_workspace();
cmd "workspace $tmp";
cmd "open";
cmd "mode toggle";
cmd "floating toggle";
my $ws = get_ws($tmp);
is(@{$ws->{nodes}}, 0, 'no nodes on workspace');

View File

@ -54,10 +54,10 @@ is(@{$nodes->[1]->{nodes}}, 2, 'two windows in split con');
# 2: make it tiling, see where it ends up
#############################################################################
cmd 'mode toggle';
cmd 'floating toggle';
my ($nodes, $focus) = get_ws_content($tmp);
is(@{$nodes->[1]->{nodes}}, 3, 'three windows in split con after mode toggle');
is(@{$nodes->[1]->{nodes}}, 3, 'three windows in split con after floating toggle');
done_testing;

View File

@ -29,7 +29,7 @@ ok($window->mapped, 'Window is mapped');
cmp_ok($absolute->{width}, '>', 400, 'i3 raised the width');
cmp_ok($absolute->{height}, '>', 150, 'i3 raised the height');
cmd 'mode toggle';
cmd 'floating toggle';
sleep 0.25;
($absolute, $top) = $window->rect;

View File

@ -49,7 +49,7 @@ sleep 0.25;
#####################################################################
cmd 'nop setting floating';
cmd 'focus parent';
cmd 'mode floating';
cmd 'floating enable';
#####################################################################
# Get geometry of the first floating node (the split container)