You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity
acrisci commentedon Feb 12, 2021
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 callworkspace()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.
wonkalous commentedon Feb 12, 2021
Interesting. Using get_tree was my original plan, but that was also not working, as in #175 .