diff options
author | Brecht Van Lommel <brecht@blender.org> | 2020-11-04 16:19:37 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-11-04 18:01:03 +0300 |
commit | cf9ea111bf48b500db59f800c49f88544873c4f7 (patch) | |
tree | 95bd9e0167750002e73b5239d527d01df6f048a4 /intern/ghost | |
parent | fd9124ed6b35fc3701ec3a4a9980c6eda5324fac (diff) |
macOS: remove deprecated touch event API call
Now that the minimum version is macOS 10.13, we can use the new API.
This reverts commit f97a64aa9b7b384f8221a1ef4f2eef9cde1238db.
Diffstat (limited to 'intern/ghost')
-rw-r--r-- | intern/ghost/intern/GHOST_WindowCocoa.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_WindowCocoa.mm b/intern/ghost/intern/GHOST_WindowCocoa.mm index f8e2f96d111..ebc08fb411c 100644 --- a/intern/ghost/intern/GHOST_WindowCocoa.mm +++ b/intern/ghost/intern/GHOST_WindowCocoa.mm @@ -404,7 +404,7 @@ GHOST_WindowCocoa::GHOST_WindowCocoa(GHOST_SystemCocoa *systemCocoa, [m_window setAcceptsMouseMovedEvents:YES]; NSView *contentview = [m_window contentView]; - [contentview setAcceptsTouchEvents:YES]; + [contentview setAllowedTouchTypes:(NSTouchTypeMaskDirect | NSTouchTypeMaskIndirect)]; [m_window registerForDraggedTypes:[NSArray arrayWithObjects:NSFilenamesPboardType, NSStringPboardType, |