Skip to content
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

Id not available in WorkspaceReply object even when it is in the ipc_data #180

Open
Tumetsu opened this issue Apr 6, 2021 · 1 comment
Assignees
Labels

Comments

@Tumetsu
Copy link

Tumetsu commented Apr 6, 2021

Not sure if this a bug or feature but I noticed that when I needed to get the id from WorkspaceReply, I noticed that it is not in the
WorkspaceReply object:

    _members = [
        ('num', int),
        ('name', str),
        ('visible', bool),
        ('focused', bool),
        ('urgent', bool),
        ('rect', Rect),
        ('output', str),
    ]

However, during coding I noticed that the property is indeed available via ipc_data object of the WorkspaceReply.

While my script works fine by using the ipc_data I was confused at first how to code the feature I wanted until I found by debugger that the id is available in ipc_data which led me to wonder if this an error with the i3ipc-python.

For whatever it's worth, I'm using i3ipc-python 2.2.1 and i3 version i3 version 4.19 (2020-11-15)

@acrisci
Copy link
Member

acrisci commented Apr 6, 2021

We can go ahead and add that property.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants