tmerr / i3ipc-rs

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

Add support for marks to get_tree #60

Open brownjohnf opened 4 years ago

brownjohnf commented 4 years ago

This change makes the following changes:

Questions

  1. The Node struct is constructed for the container when a window event is received; will this container also always have the marks property set coming back from the i3 API?
  2. Same question as above about the workspace event.

I think it should be okay, based on the way the JSON is being parsed. If the marks field is missing, I think it'll just be an empty vec.

brownjohnf commented 4 years ago

Assuming I'm right about these changes, this should close #59

brownjohnf commented 4 years ago

Also, I'm not sure how you handle versioning, so I didn't touch that in this PR so far.