Closed geeseven closed 4 years ago
I think this is a case where you could expect multiple windows for one pid.
@acrisci, thanks for the timely reply. That is a good point. I have made the requested change.
In [1]: import i3ipc
In [2]: i3 = i3ipc.Connection()
In [3]: y = i3.get_tree().find_by_pid(1384)
In [4]: y[0].id
Out[4]: 11
In [5]: y[0].workspace().name
Out[5]: '1'
In [6]: y[1].id
Out[6]: 344
In [7]: y[1].workspace().name
Out[7]: '10'
:+1:
Add a way to find a container based on pid.