From: Orestis Floros Date: Fri, 14 Sep 2018 11:04:54 +0000 (+0300) Subject: dump-asy.pl: Include floating_nodes X-Git-Tag: 4.16~38^2 X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=commitdiff_plain;h=702e83c95ed75e6debbff8729177a8560f373956;hp=ede954128afca118025db6a04d4d9d259473c70f dump-asy.pl: Include floating_nodes --- diff --git a/contrib/dump-asy.pl b/contrib/dump-asy.pl index 2c244752..5af4c72f 100755 --- a/contrib/dump-asy.pl +++ b/contrib/dump-asy.pl @@ -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 {