From 3e24b7170f0b25e59849b510589b973e06a2a328 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 6 Jul 2011 20:21:39 +0200 Subject: [PATCH] migrate-config: Bugfix: 'borderless' has to be 'none' --- i3-migrate-config-to-v4.pl | 8 ++++---- testcases/t/71-config-migrate.t | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/i3-migrate-config-to-v4.pl b/i3-migrate-config-to-v4.pl index 7e4f61ce..eee730d1 100755 --- a/i3-migrate-config-to-v4.pl +++ b/i3-migrate-config-to-v4.pl @@ -70,7 +70,7 @@ sub need_to_convert { $command =~ /^floating/ || $command =~ /^workspace/ || $command =~ /^focus (left|right|up|down)/ || - $command =~ /^border (normal|1pixel|borderless)/; + $command =~ /^border (normal|1pixel|none)/; } return 1; @@ -127,10 +127,10 @@ for my $line (@lines) { next; } - # new_window changed the parameters from bb to borderless etc. + # new_window changed the parameters from bb to none etc. if ($statement eq 'new_window') { if ($parameters =~ /bb/) { - print "new_window borderless\n"; + print "new_window none\n"; } elsif ($parameters =~ /bp/) { print "new_window 1pixel\n"; } elsif ($parameters =~ /bn/) { @@ -216,7 +216,7 @@ sub convert_command { qr/^ml/ => 'move right', qr/^bn/ => 'border normal', qr/^bp/ => 'border 1pixel', - qr/^bb/ => 'border borderless', + qr/^bb/ => 'border none', qr/^pw/ => 'workspace prev', qr/^nw/ => 'workspace next', ); diff --git a/testcases/t/71-config-migrate.t b/testcases/t/71-config-migrate.t index ec46eb33..1d81aaac 100644 --- a/testcases/t/71-config-migrate.t +++ b/testcases/t/71-config-migrate.t @@ -112,14 +112,14 @@ $output = migrate_config($input); ok(line_exists($output, qr|^workspace_layout stacking$|), 'new_container changed'); ok(line_exists($output, qr|REMOVED workspace_bar|), 'workspace_bar removed'); ok(!line_exists($output, qr|^workspace_bar|), 'no workspace_bar in the output'); -ok(line_exists($output, qr|^new_window borderless$|), 'new_window changed'); +ok(line_exists($output, qr|^new_window none$|), 'new_window changed'); ##################################################################### # check whether new_window's parameters get changed correctly ##################################################################### $output = migrate_config('new_window bb'); -ok(line_exists($output, qr|^new_window borderless$|), 'new_window bb changed'); +ok(line_exists($output, qr|^new_window none$|), 'new_window bb changed'); $output = migrate_config('new_window bn'); ok(line_exists($output, qr|^new_window normal$|), 'new_window bn changed'); @@ -212,7 +212,7 @@ ok(line_exists($output, qr|^bindsym Mod1\+s move up$|), 'mk replaced'); ok(line_exists($output, qr|^bindsym Mod1\+s move right$|), 'ml replaced'); ok(line_exists($output, qr|^bindsym Mod1\+s border normal$|), 'bn replaced'); ok(line_exists($output, qr|^bindsym Mod1\+s border 1pixel$|), 'bp replaced'); -ok(line_exists($output, qr|^bindsym Mod1\+s border borderless$|), 'bb replaced'); +ok(line_exists($output, qr|^bindsym Mod1\+s border none$|), 'bb replaced'); ok(line_exists($output, qr|^#.*with container.*obsolete.*wch$|), 'with container removed'); ok(line_exists($output, qr|^#.*with container.*obsolete.*wcml$|), 'with container removed'); ok(line_exists($output, qr|^bindsym Mod1\+k kill$|), 'kill unchanged'); -- 2.39.5