-
Notifications
You must be signed in to change notification settings - Fork 109
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
Root Tree State does not update #165
Comments
It's very likely an issue with i3 because all the tree info is rerendered every time you call Try to reproduce the issue with |
There's no cache that I know of for this on the library side. If you want to look into the code, it's pretty simple. And there's a nice test suite too. https://github.com/altdesktop/i3ipc-python/blob/master/test/test_window.py I should get around to doing a triage at some point. |
Awesome, I'll take a look sometime this week and can submit a pull request if I'm able to find the bug. Thanks for your help here. |
I think this test illustrates the problem i3ipc-python/test/aio/test_window.py Lines 76 to 102 in 0ec537d
|
Unfortunately, I've had little time to address this (and it's not a priority based on the comments for i3-grid). Feel free to close this issue and add a TODO (up to you). |
Preface: I'm not sure if this is an issue with the IPC or a feature of i3 itself but a confirmation would be nice.
If you change the attributes of a window in another workspace, the new attributes are not reflected in
get_tree
until that window has received focus.Ex:
1.) Create a window in workspace 1
2.) Go to Workspace 2
3.) Open & run command in terminal 1 python shell (leave shell open)
4.) Open & run command in terminal 2 in bash shell
5.) Still in workspace 2, run in terminal 1 in the same python shell
The
rect
still contains the same values, even though it has been manipulated. If you now focus on workspace 1, go back to workspace 2 and rerun the same python command:The height and width attributes of
rect
are now changed.. I am thinking this might be a lazy evaluation by i3 itself rather than an issue with the IPC. But maybe I am incorrect.I have also tried reinstantiating a new
Connection
instance with every run to no avail.Any advice here would be great. Thank you!
The text was updated successfully, but these errors were encountered: