]> git.sur5r.net Git - i3/i3/commitdiff
Merge pull request #3403 from orestisf1993/issue-3402
authorIngo Bürk <admin@airblader.de>
Fri, 14 Sep 2018 13:17:13 +0000 (15:17 +0200)
committerGitHub <noreply@github.com>
Fri, 14 Sep 2018 13:17:13 +0000 (15:17 +0200)
_con_move_to_con: Move upwards only on CT_FLOATING_CON

contrib/dump-asy.pl

index 2c244752695cf645bc1b16adde28c8cf3795f791..5af4c72f313763a7fb6a459ba59cada1d273d2c2 100755 (executable)
@@ -46,7 +46,7 @@ sub dump_node {
 
     my $o = ($n->{orientation} eq 'none' ? "u" : ($n->{orientation} eq 'horizontal' ? "h" : "v"));
     my $w = (defined($n->{window}) ? $n->{window} : "N");
-    my $na = ($n->{name} or "[Empty]");
+    my $na = ($n->{name} or ($n->{type} eq "floating_con" ? "[Floating con]" : "[Empty]"));
     $na =~ s/#/\\#/g;
     $na =~ s/\$/\\\$/g;
     $na =~ s/&/\\&/g;
@@ -64,7 +64,8 @@ sub dump_node {
     print $tmp "n" . $parent->{id} . ", " if defined($parent);
     print $tmp "\"" . $name . "\");\n";
 
-       dump_node($_, $n) for @{$n->{nodes}};
+    dump_node($_, $n) for @{$n->{nodes}};
+    dump_node($_, $n) for @{$n->{floating_nodes}};
 }
 
 sub find_node_with_name {