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
get_tree, leaves, floating problem? #75
Comments
Yeah looks like a library issue. I will look into it tomorrow. |
I think this is fixed in #70 which was fairly recent. |
I just released 1.4.0 which I think should fix it. |
Hi @acrisci , sorry the issue seems to be still here. |
The problem is that #!/usr/bin/env python3
import i3ipc
def iterate_workspaces(i3):
print('iterating workspaces')
for _, workspace in enumerate(i3.get_tree().workspaces()):
print('workspace name: ' + workspace.name)
for leaf in workspace.leaves():
print(leaf.name)
print('------')
print('iterating workspaces: DONE')
def iterate_tree(i3):
print('iterating tree')
root = i3.get_tree()
print('root name: ' + root.name)
for leaf in root.leaves():
print(leaf.name)
print('iterating tree: DONE')
def main():
i3 = i3ipc.Connection()
iterate_workspaces(i3)
print('\n============\n')
iterate_tree(i3)
if __name__ == '__main__':
main() |
Can you try again with 54c9218? I think that fixes it. I added a test you can look at so we won't have regressions. |
I confirm that the fix is working, thanks! 👍 |
Cool! Thanks it works! |
Hi!
Please could you please look this issue maximbaz/dotfiles#4
It is related a python scripts which use our lib, and a behaviour change between 2 versions.
Do you have an idea about the problem?
Regards,
The text was updated successfully, but these errors were encountered: