diff options
author | Nicholas Rishel <rishel.nick@gmail.com> | 2020-11-15 04:17:12 +0300 |
---|---|---|
committer | Nicholas Rishel <rishel.nick@gmail.com> | 2020-11-16 23:46:16 +0300 |
commit | 96200110eb0f0c8d2d48b1f383927ab8bd6c4aff (patch) | |
tree | d6aea0b0e4d2a64859b8a0c16e55d74a6f080a1b /intern/ghost | |
parent | 5d13cb5c2a8e5c2728185e7d1e6b186ce86154e5 (diff) |
Fix T76699: Support macOS inbetween mouse/tablet.
Coalescing on macOS overwrites a singular unprocessed mouse event. To
receive all mouse and tablet events coalescing is disabled.
Disabling coalescing for macOS disables coalescing for trackpad
gestures. Repeat trackpad events are unnecessary and found to
negatively impact performance thus are re-coalesced in Window Manager.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D9574
Diffstat (limited to 'intern/ghost')
-rw-r--r-- | intern/ghost/intern/GHOST_SystemCocoa.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_SystemCocoa.mm b/intern/ghost/intern/GHOST_SystemCocoa.mm index c12c09f1053..2a3f6e0b0b9 100644 --- a/intern/ghost/intern/GHOST_SystemCocoa.mm +++ b/intern/ghost/intern/GHOST_SystemCocoa.mm @@ -415,6 +415,8 @@ extern "C" int GHOST_HACK_getFirstFile(char buf[FIRSTFILEBUFLG]) // with a frontmost window but an inactive application. [NSApp activateIgnoringOtherApps:YES]; } + + [NSEvent setMouseCoalescingEnabled:NO]; } - (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filename @@ -892,7 +894,6 @@ bool GHOST_SystemCocoa::processEvents(bool waitForEvent) bool anyProcessed = false; NSEvent *event; - // SetMouseCoalescingEnabled(false, NULL); // TODO : implement timer ?? #if 0 do { |