Skip to content

Added bounding box rect properties to outputted window results#1

Open
visgotti wants to merge 1 commit intoJosephusPaye:masterfrom
visgotti:get-window-rect
Open

Added bounding box rect properties to outputted window results#1
visgotti wants to merge 1 commit intoJosephusPaye:masterfrom
visgotti:get-window-rect

Conversation

@visgotti
Copy link
Copy Markdown

Needed this info and the only other npm module that I could find to get the rect was only getting the active window's data. Hopefully someone else might find this useful.

@JosephusPaye
Copy link
Copy Markdown
Owner

JosephusPaye commented Mar 18, 2021

This could be useful for someone 👍.

I'm just wary about paying the cost to get the rects each time, even when the caller doesn't need the information.

Perhaps this addition could be in a separate npm module? It could export a function which takes the list of window handles from listOpenWindows() and gets their rects? I could link to such a module in the README on this module.

@Kasparsu
Copy link
Copy Markdown

Kasparsu commented Jun 8, 2022

This could be useful for someone 👍.

I'm just wary about paying the cost to get the rects each time, even when the caller doesn't need the information.

Perhaps this addition could be in a separate npm module? It could export a function which takes the list of window handles from listOpenWindows() and gets their rects? I could link to such a module in the README on this module.

or just have it behind a flag -.- npm ecosystem is screwed up as it is at this point.

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

Successfully merging this pull request may close these issues.

3 participants