485871ffdd
In v4 syntax, that's focus parent/child.
42 lines
1.1 KiB
Perl
42 lines
1.1 KiB
Perl
#!perl
|
||
# vim:ts=4:sw=4:expandtab
|
||
#
|
||
# Regression test: level up should be a noop during fullscreen mode
|
||
#
|
||
use i3test;
|
||
|
||
my $tmp = fresh_workspace;
|
||
|
||
#####################################################################
|
||
# open a window, verify it’s not in fullscreen mode
|
||
#####################################################################
|
||
|
||
my $win = open_window;
|
||
|
||
my $nodes = get_ws_content $tmp;
|
||
is(@$nodes, 1, 'exactly one client');
|
||
is($nodes->[0]->{fullscreen_mode}, 0, 'client not fullscreen');
|
||
|
||
#####################################################################
|
||
# make it fullscreen
|
||
#####################################################################
|
||
|
||
cmd 'nop making fullscreen';
|
||
cmd 'fullscreen';
|
||
|
||
$nodes = get_ws_content $tmp;
|
||
is($nodes->[0]->{fullscreen_mode}, 1, 'client fullscreen now');
|
||
|
||
#####################################################################
|
||
# send level up, try to un-fullscreen
|
||
#####################################################################
|
||
cmd 'focus parent';
|
||
cmd 'fullscreen';
|
||
|
||
$nodes = get_ws_content $tmp;
|
||
is($nodes->[0]->{fullscreen_mode}, 0, 'client not fullscreen any longer');
|
||
|
||
does_i3_live;
|
||
|
||
done_testing;
|