From 06dfba04cea72ef4674e38ad69d69581bf0400ae Mon Sep 17 00:00:00 2001 From: Jean-Yves Boudreau Date: Tue, 17 Oct 2023 02:38:10 -0400 Subject: [PATCH] Fix parsing window ID on Linux (#173) --- lib/linux.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/linux.js b/lib/linux.js index 69e5409..2386bfd 100644 --- a/lib/linux.js +++ b/lib/linux.js @@ -90,7 +90,7 @@ async function getWindowInformation(windowId) { ]); const data = parseLinux({ - windowId, + activeWindowId: windowId, boundsStdout, stdout }); @@ -108,7 +108,7 @@ function getWindowInformationSync(windowId) { const boundsStdout = childProcess.execFileSync(xwininfoBin, [...xpropDetailsArgs, windowId], {encoding: 'utf8'}); const data = parseLinux({ - windowId, + activeWindowId: windowId, boundsStdout, stdout });