node-mac-recorder 2.7.6 → 2.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-mac-recorder",
3
- "version": "2.7.6",
3
+ "version": "2.8.1",
4
4
  "description": "Native macOS screen recording package for Node.js applications",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -1811,9 +1811,8 @@ Napi::Value GetSelectedWindowInfo(const Napi::CallbackInfo& info) {
1811
1811
  result.Set("screenWidth", Napi::Number::New(env, (int)screenFrame.size.width));
1812
1812
  result.Set("screenHeight", Napi::Number::New(env, (int)screenFrame.size.height));
1813
1813
 
1814
- // Clear selected window info after reading
1815
- [g_selectedWindowInfo release];
1816
- g_selectedWindowInfo = nil;
1814
+ // Don't clear selected window info - just read it
1815
+ // The info will be cleared when recording actually starts
1817
1816
 
1818
1817
  return result;
1819
1818