node-mac-recorder 2.9.0 → 2.9.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 +1 -1
- package/src/window_selector.mm +8 -2
package/package.json
CHANGED
package/src/window_selector.mm
CHANGED
|
@@ -127,8 +127,8 @@ void updateScreenOverlays();
|
|
|
127
127
|
// Handle mouse click to toggle window selection (ONLY selection, no recording start)
|
|
128
128
|
if (self.windowInfo) {
|
|
129
129
|
// Check if this window is already selected
|
|
130
|
-
BOOL wasSelected = (
|
|
131
|
-
[
|
|
130
|
+
BOOL wasSelected = (g_clickedWindowInfo &&
|
|
131
|
+
[g_clickedWindowInfo isEqualToDictionary:self.windowInfo]);
|
|
132
132
|
|
|
133
133
|
if (wasSelected) {
|
|
134
134
|
// Deselect this window - return to normal highlight behavior
|
|
@@ -172,6 +172,12 @@ void updateScreenOverlays();
|
|
|
172
172
|
[self updateAppearance];
|
|
173
173
|
|
|
174
174
|
// DON'T start recording here - that's only for the "Start Record" button
|
|
175
|
+
// Consume the event completely to prevent any propagation
|
|
176
|
+
NSLog(@"🛑 MOUSE EVENT CONSUMED - No recording started");
|
|
177
|
+
|
|
178
|
+
// IMPORTANT: Return YES to indicate we handled the event
|
|
179
|
+
// This prevents the event from propagating to other handlers
|
|
180
|
+
return;
|
|
175
181
|
}
|
|
176
182
|
}
|
|
177
183
|
|