Skip to content

Commit

Permalink
fix(macOS): Prevent pointer over event originating from other window
Browse files Browse the repository at this point in the history
  • Loading branch information
spouliot committed Nov 4, 2024
1 parent 94b1943 commit c1b2800
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,11 @@ - (BOOL) getPositionFrom:(NSEvent*)event x:(CGFloat*)px y:(CGFloat *)py
}

- (void)sendEvent:(NSEvent *)event {
if (![[NSApplication sharedApplication] isActive]) {
[super sendEvent:event];
return;
}

bool handled = false;
MouseEvents mouse = MouseEventsNone;
PointerDeviceType pdt = PointerDeviceTypeMouse;
Expand Down

0 comments on commit c1b2800

Please sign in to comment.