Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix window properties #65

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

c0deaddict
Copy link

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant