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

fix: Correctly pass activeWindowId into parseLinux #173

Closed jyboudreau closed 10 months ago

jyboudreau commented 10 months ago

Noticed while running this on Linux that sometimes WM_CLIENT_LEADER(WINDOW) is missing from xprop output. The code seems to take this into account with: https://github.com/sindresorhus/active-win/blob/27221e5da0a64025bdec8759605694ea84ff9f68/lib/linux.js#L38-L39

However, the named parameter activeWindowId is not set correctly by the caller.

This fixes the issue.