diff options
author | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2022-11-12 14:08:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-12 14:08:13 +0100 |
commit | d1301262048592390ff2e8e3bbc2300cd77bd917 (patch) | |
tree | 041cf3db9e0a479e33dff773d43a87dfbc29f0a5 /testcases | |
parent | 2b236955bd0dbe8a8a7322ecfd59304d6a7e92b8 (diff) | |
download | i3-d1301262048592390ff2e8e3bbc2300cd77bd917.tar.gz i3-d1301262048592390ff2e8e3bbc2300cd77bd917.zip |
gaps: fix inner gaps for stacked/tabbed containers in splith/splitv (#5275)
Fixes https://github.com/i3/i3/issues/5261
Diffstat (limited to 'testcases')
-rw-r--r-- | testcases/t/319-gaps.t | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testcases/t/319-gaps.t b/testcases/t/319-gaps.t index 8bb610b7..1747c37d 100644 --- a/testcases/t/319-gaps.t +++ b/testcases/t/319-gaps.t @@ -163,4 +163,43 @@ is_gaps(); exit_gracefully($pid); +################################################################################ +# Ensure stacked/tabbed containers are properly inset even when they are part +# of a splith/splitv container (issue #5261). +################################################################################ + +$config = <<EOT; +# i3 config file (v4) +font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 + +gaps inner 10 + +default_border pixel 0 +EOT + +$pid = launch_with_config($config); + +fresh_workspace; + +my $helper = open_window; +$right = open_window; +sync_with_i3; +cmd 'focus left'; +cmd 'splitv'; +$left = open_window; +sync_with_i3; +cmd 'splith'; +cmd 'layout stacked'; +sync_with_i3; +$helper->destroy; +sync_with_i3; + +$inner_gaps = 10; +$outer_gaps = 0; +$total_gaps = $outer_gaps + $inner_gaps; + +is_gaps(); + +exit_gracefully($pid); + done_testing; |