Open wonkalous opened 3 years ago
The way workspace()
works is it walks up the tree and finds a workspace. The way the i3ipc works, the event container does not contain the information of the tree. It's just the container without parent information.
To fix this, get the tree with get_tree()
, find the container by id, and then call workspace()
on that.
To fix the issue, I think we should throw an error when workspace information is not present within the tree such as in events to avoid confusion.
Interesting. Using get_tree was my original plan, but that was also not working, as in https://github.com/altdesktop/i3ipc-python/issues/175 .
Here is a repro: