diff --git a/src/Uno.UI.Runtime.Skia.MacOS/UnoNativeMac/UnoNativeMac/UNOWindow.m b/src/Uno.UI.Runtime.Skia.MacOS/UnoNativeMac/UnoNativeMac/UNOWindow.m index 2e67cc692bc7..7a72f4ebfdcc 100644 --- a/src/Uno.UI.Runtime.Skia.MacOS/UnoNativeMac/UnoNativeMac/UNOWindow.m +++ b/src/Uno.UI.Runtime.Skia.MacOS/UnoNativeMac/UnoNativeMac/UNOWindow.m @@ -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;