2011-03-09 18:36:45 +01:00
|
|
|
|
#!perl
|
|
|
|
|
# vim:ts=4:sw=4:expandtab
|
|
|
|
|
#
|
|
|
|
|
# Regression test: level up should be a noop during fullscreen mode
|
|
|
|
|
#
|
|
|
|
|
use i3test;
|
|
|
|
|
|
2011-03-09 20:25:17 +01:00
|
|
|
|
my $tmp = fresh_workspace;
|
2011-03-09 18:36:45 +01:00
|
|
|
|
|
|
|
|
|
#####################################################################
|
|
|
|
|
# open a window, verify it’s not in fullscreen mode
|
|
|
|
|
#####################################################################
|
|
|
|
|
|
2011-11-22 00:47:32 +01:00
|
|
|
|
my $win = open_window;
|
2011-03-09 18:36:45 +01:00
|
|
|
|
|
|
|
|
|
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';
|
|
|
|
|
|
2011-11-21 21:04:00 +01:00
|
|
|
|
$nodes = get_ws_content $tmp;
|
2011-03-09 18:36:45 +01:00
|
|
|
|
is($nodes->[0]->{fullscreen_mode}, 1, 'client fullscreen now');
|
|
|
|
|
|
|
|
|
|
#####################################################################
|
|
|
|
|
# send level up, try to un-fullscreen
|
|
|
|
|
#####################################################################
|
2012-05-27 06:44:29 +02:00
|
|
|
|
cmd 'focus parent';
|
2011-03-09 18:36:45 +01:00
|
|
|
|
cmd 'fullscreen';
|
|
|
|
|
|
2011-11-21 21:04:00 +01:00
|
|
|
|
$nodes = get_ws_content $tmp;
|
2011-03-09 18:36:45 +01:00
|
|
|
|
is($nodes->[0]->{fullscreen_mode}, 0, 'client not fullscreen any longer');
|
|
|
|
|
|
|
|
|
|
does_i3_live;
|
|
|
|
|
|
|
|
|
|
done_testing;
|