sindresorhus / get-windows

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

`getOpenWindows` does not return all windows #157

Closed nsharma1396 closed 1 year ago

nsharma1396 commented 1 year ago

Thanks for the amazing work on this package

I am trying to use getOpenWindows and though it does returns the active windows, few cases seems to get missed:

Not sure if this is expected out of the API but would really appreciate if there can be some workaround for this.

Thanks

sindresorhus commented 1 year ago

Chrome/firefox tabs: Only the current focused chrome or firefox tab is returned instead of all open tabs (same for apps that have tabs like powershell, vscode, etc)

Tabs are not windows, so this is expected behavior.

Widget kind of windows are only returned in the activeWindow API and not the getOpenWindows one

What are "widget windows"? And what OS?

nsharma1396 commented 1 year ago

Tabs are not windows, so this is expected behavior.

Okay, that makes sense, but is there any way that can help us get all the tabs as well?

What are "widget windows"? And what OS?

So, by hitting the Win key + W in Windows 11, you can bring up the widgets board. I was referring to that but I think that doesn't really qualify as a window again so that's alright.

sindresorhus commented 1 year ago

Okay, that makes sense, but is there any way that can help us get all the tabs as well?

I'm not familiar with Windows, so I don't know whether it's possible. It feels a bit outside the scope of this package though.

So, by hitting the Win key + W in Windows 11, you can bring up the widgets board. I was referring to that but I think that doesn't really qualify as a window again so that's alright.

It's a bug that it's included.

// @miniben-90

RedSparr0w commented 1 year ago

It seems that most fullscreen/fullscreen windowed windows are also excluded.

RedSparr0w commented 1 year ago

Just checking, did #159 also solve the issue of fullscreen windows not being detected?

Or should I open a new issue?

sindresorhus commented 1 year ago

@RedSparr0w Open a new issue about that.