Skip to content

Commit

Permalink
Merge pull request #18688 from unoplatform/dev/spouliot/gh16399
Browse files Browse the repository at this point in the history
fix(macOS): Prevent pointer over event originating from other window
  • Loading branch information
spouliot authored Nov 6, 2024
2 parents 1521f00 + c1b2800 commit a029477
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 a029477

Please sign in to comment.