mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 04:40:02 +01:00
XQuartz: Ensure scroll events are delivered to a single window (not both X11 and AppKit)
Fixes: https://github.com/XQuartz/XQuartz/issues/130
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
(cherry picked from commit 4532b696c6)
This commit is contained in:
parent
64b2987c45
commit
f1a8f0d215
1 changed files with 7 additions and 3 deletions
|
|
@ -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,7 +534,9 @@ 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, ^{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue