sindresorhus / get-windows

Get metadata about the active window and open windows (title, id, bounds, owner, etc)
MIT License
797 stars 167 forks source link

Window title is blank #87

Closed AmonWarner closed 3 years ago

AmonWarner commented 4 years ago

I'm on macos Catalina, And it gets all the active windows correct except for the window title. how do I get the window title? right now it's just blank. I can provide more if needed

sindresorhus commented 4 years ago

Getting the window title requires permission. You should either have gotten a prompt or an error message:

https://github.com/sindresorhus/active-win/blob/598e9a937e178342e8d742f89e66afdf7e785da8/Sources/active-win/main.swift#L14-L18

Try to do some debugging yourself.

AmonWarner commented 4 years ago

I'll take a look. Thanks!