Skip to content

Space.windows() doesn't return all windows accurately #333

Description

@z20240
  • Version: 3.0.0
  • macOS: 13.3 (Apple M1)

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 from Space.windows() bug it seems not return accurate result.

Here is my snip code

const spaces = Space.all();
for (let space of spaces) {
  console.log('Space ---->', space.hash());
  console.log(
    space
      .windows()
      .map((window) => `[${window.hash()}]-${window.app().name()}`)
      .join('\n')
  );
}

And the result of console.log returned is below

2023-04-05 01:54:03.846401+0800 0x1802     Default     0x0                  753    0    Phoenix: Phoenix has loaded!
2023-04-05 01:54:03.846595+0800 0x1802     Default     0x0                  753    0    Phoenix: Space ----> 3
2023-04-05 01:54:03.875760+0800 0x1802     Default     0x0                  753    0    Phoenix:
2023-04-05 01:54:03.875868+0800 0x1802     Default     0x0                  753    0    Phoenix: Space ----> 4
2023-04-05 01:54:03.898515+0800 0x1802     Default     0x0                  753    0    Phoenix:
2023-04-05 01:54:03.898631+0800 0x1802     Default     0x0                  753    0    Phoenix: Space ----> 5
2023-04-05 01:54:03.923203+0800 0x1802     Default     0x0                  753    0    Phoenix: [1668246211]-Code
2023-04-05 01:54:03.923300+0800 0x1802     Default     0x0                  753    0    Phoenix: Space ----> 6
2023-04-05 01:54:04.049655+0800 0x1802     Default     0x0                  753    0    Phoenix:
2023-04-05 01:54:04.049780+0800 0x1802     Default     0x0                  753    0    Phoenix: Space ----> 7
2023-04-05 01:54:04.105358+0800 0x1802     Default     0x0                  753    0    Phoenix:
2023-04-05 01:54:04.105512+0800 0x1802     Default     0x0                  753    0    Phoenix: Space ----> 11
2023-04-05 01:54:04.132246+0800 0x1802     Default     0x0                  753    0    Phoenix: [1668245901]-Microsoft Edge
[1668245944]-System Information
2023-04-05 01:54:04.132420+0800 0x1802     Default     0x0                  753    0    Phoenix: Space ----> 9
2023-04-05 01:54:04.157580+0800 0x1802     Default     0x0                  753    0    Phoenix:
2023-04-05 01:54:04.157708+0800 0x1802     Default     0x0                  753    0    Phoenix: Space ----> 10
2023-04-05 01:54:04.183784+0800 0x1802     Default     0x0                  753    0    Phoenix:
2023-04-05 01:54:04.197950+0800 0x1802     Default     0x0                  753    0    Phoenix: Context loaded.

Here is my actual window distribute.
Screenshot 2023-04-05 at 1 59 59 AM
Screenshot 2023-04-05 at 1 59 59 AM (2)

It seems that some window didn't be detected by phoenix.

Any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions