]> git.sur5r.net Git - i3/i3/blobdiff - i3-migrate-config-to-v4
swap up/down, also modify the testcase
[i3/i3] / i3-migrate-config-to-v4
index 65d6bdce3b6d114b2875a64e21f6bc11f44d7b6a..0a8db2deb275c9894d065692a7be3e4965214798 100755 (executable)
@@ -290,9 +290,9 @@ sub convert_command {
         my $cmd = 'resize ';
         $cmd .= ($sign eq '+' ? 'grow' : 'shrink') . ' ';
         if ($direction eq 'top') {
-            $direction = 'down';
-        } elsif ($direction eq 'bottom') {
             $direction = 'up';
+        } elsif ($direction eq 'bottom') {
+            $direction = 'down';
         }
         $cmd .= "$direction ";
         $cmd .= "$px px";