File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,14 @@ pub fn build_tree(val: &json::Value) -> reply::Node {
14
14
. collect :: < Vec < _ > > ( ) ,
15
15
None => vec ! [ ]
16
16
} ,
17
+ floating_nodes : match val. find ( "floating_nodes" ) {
18
+ Some ( nds) => nds. as_array ( )
19
+ . unwrap ( )
20
+ . iter ( )
21
+ . map ( |n| build_tree ( n) )
22
+ . collect :: < Vec < _ > > ( ) ,
23
+ None => vec ! [ ]
24
+ } ,
17
25
id : val. find ( "id" ) . unwrap ( ) . as_i64 ( ) . unwrap ( ) ,
18
26
name : match val. find ( "name" ) {
19
27
Some ( n) => match n. as_string ( ) {
Original file line number Diff line number Diff line change @@ -119,6 +119,9 @@ pub struct Node {
119
119
/// The child nodes of this container.
120
120
pub nodes : Vec < Node > ,
121
121
122
+ /// The child floating nodes of this container.
123
+ pub floating_nodes : Vec < Node > ,
124
+
122
125
/// The internal ID (actually a C pointer value) of this container. Do not make any
123
126
/// assumptions about it. You can use it to (re-)identify and address containers when
124
127
/// talking to i3.
You can’t perform that action at this time.
0 commit comments