tmerr / i3ipc-rs

A Rust library for controlling i3-wm through its IPC interface
MIT License
107 stars 33 forks source link

Fix window properties #65

Open c0deaddict opened 2 years ago

c0deaddict commented 2 years ago

Getting the window_properties on nodes in the tree results in all None (on i3 version 4.20). This is caused by an unknown window_property "machine".

let mut i3 = I3Connection::connect().unwrap();
let tree = i3.get_tree().unwrap();
let node = find_focused(&tree).unwrap();
println!("{:?}", node.window_properties);

This PR fixes the issue of unknown window_properties resulting in an empty HashMap. And it also adds the "machine" window_property.

I also fixed some deprecation warnings (on rust 1.56.1).