Open z20240 opened 1 year ago
Hi! I would need to investigate this more, I’m unsure what could cause this.
Thank you very much. If you need more info, please let me know. I'll do my best to support it.
@z20240 Thanks! If you check what Window.all()
returns, can you find all the windows there?
@z20240 Thanks! If you check what
Window.all()
returns, can you find all the windows there?
Yah, it can return all active windows even if the window is not currently displayed.
btw, I have two monitors in my develop space. I'm not sure if it is related to this situation.
Great, so what happens if you iterate over all the windows from Window.all()
and call Window#spaces()
for each window? Do you get better results? Or do some windows return empty spaces?
Great, so what happens if you iterate over all the windows from
Window.all()
and callWindow#spaces()
for each window? Do you get better results? Or do some windows return empty spaces?
It seems a little wired.
I tried to iterate over all the windows from Window.all()
and call Window.spaces()
for each window.
However it still not shown correct windows distribution in each space.
Here is the code what used to iterate.
And the testing environment in on desktop 4
and desktop 6
which is Space 4
and Space 7
.
It seems if any space doesn't have window, it won't be return by
window.spaces()
.
The figures below is what my actually windows distribution.
First of all, I'm very thankful that the author provide this powerful library.
I'm trying to using
Space.windows()
to get all windows' information fromSpace.windows()
bug it seems not return accurate result.Here is my snip code
And the result of
console.log
returned is belowHere is my actual window distribute.
It seems that some window didn't be detected by phoenix.
Any idea?