-rw-r--r-- | hw/xquartz/X11Application.m | 10 |
diff --git a/hw/xquartz/X11Application.m b/hw/xquartz/X11Application.m index 3768f7fc1..ec2a13d9e 100644 --- a/hw/xquartz/X11Application.m +++ b/hw/xquartz/X11Application.m @@ -315,6 +315,8 @@ message_kit_thread(SEL selector, NSObject *arg) case NSLeftMouseUp: case NSRightMouseUp: case NSOtherMouseUp: + case NSScrollWheel: + if ([e window] != nil) { /* Pointer event has an (AppKit) window. Probably something for the kit. */ for_x = NO; @@ -532,12 +534,14 @@ message_kit_thread(SEL selector, NSObject *arg) break; /* for gcc */ } - if (for_appkit) [super sendEvent:e]; + if (for_appkit) { + [super sendEvent:e]; + } if (for_x) { dispatch_async(eventTranslationQueue, ^{ - [self sendX11NSEvent:e]; - }); + [self sendX11NSEvent:e]; + }); } } |