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

Window Filter doesn't recognize Firefox until focused #3509

Open
glenreesor opened this issue Jul 3, 2023 · 0 comments
Open

Window Filter doesn't recognize Firefox until focused #3509

glenreesor opened this issue Jul 3, 2023 · 0 comments

Comments

@glenreesor
Copy link

glenreesor commented Jul 3, 2023

Mac: Mac Mini
macOS: Ventura 13.4.1
Hammerspoon: 0.9.100 (6815)

It looks like hs.window.filter doesn't recognize Firefox when it is initially opened. However if you focus another window and then focus Firefox, then a hs.window.filter.windowCreated event will get triggered.

Here's some code to demonstrate:
init.txt

Here's a video using the code above. Everything is super slow because this is an old Mac Mini running through a VNC connection 😄 . Clicks are represented by the big red circles.

No.event.for.Firefox.mp4

Similar behavior occurs for LibreOffice. Interestingly, calling hs.window.allWindows() is another way to trigger recognizing Firefox and LibreOffice.

Edit: I just realized that this also occurs for other apps, like System Settings. Presumably there are others.

@glenreesor glenreesor changed the title Window Filter doesn't recognize Firefox immediately Window Filter doesn't recognize Firefox until focused Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant