bdk-blender/intern/ghost
Germano Cavalcante 6489f2212b Fix T88386: Continuous Grab occasionally jumping on Arm64 MacOS
During the processing of a continuous drag event, other mouse move
events may be in the queue waiting to be processed.

But when a mouse wrapping happens, these waiting mouse move events
become out of date as they report a mouse position prior to wrapping.

The current code ignores these events by comparing their `timestamp` to
the time recorded in the last mouse wrapping.

The bug happens because the computed value in
`mach_absolute_time() * 1e-9` for some reason is incompatible with the
value of `[event timestamp]`.

Since macOS 10.6, we have a new way to get the amount of time the
system has been awake. `[[NSProcessInfo processInfo] systemUptime]`.

Using this updated method fixed the problem.

Differential Revision: https://developer.blender.org/D12202
2021-11-02 10:58:14 +01:00
..
intern Fix T88386: Continuous Grab occasionally jumping on Arm64 MacOS 2021-11-02 10:58:14 +01:00
test UI: Removal of GHOST_CreateDialogWindow 2021-02-09 16:14:31 -08:00
CMakeLists.txt Explicitly link X11 libraries 2020-12-17 13:24:35 +01:00
GHOST_C-api.h UI: Removal of GHOST_CreateDialogWindow 2021-02-09 16:14:31 -08:00
GHOST_IContext.h Cleanup: doxygen comments in ghost 2020-11-06 14:25:44 +11:00
GHOST_IEvent.h Code Style: use "#pragma once" in intern/ghost 2020-08-07 10:18:01 +02:00
GHOST_IEventConsumer.h Cleanup: doxygen comments in ghost 2020-11-06 14:25:44 +11:00
GHOST_ISystem.h Cleanup: doxygen comments in ghost 2020-11-06 14:25:44 +11:00
GHOST_ISystemPaths.h Ghost: Support queries for special user directories (desktop, documents, etc.) 2020-12-11 16:20:53 +01:00
GHOST_ITimerTask.h Cleanup: doxygen comments in ghost 2020-11-06 14:25:44 +11:00
GHOST_IWindow.h Cleanup: doxygen comments in ghost 2020-11-06 14:25:44 +11:00
GHOST_IXrContext.h Code Style: use "#pragma once" in intern/ghost 2020-08-07 10:18:01 +02:00
GHOST_Path-api.h Ghost: Support queries for special user directories (desktop, documents, etc.) 2020-12-11 16:20:53 +01:00
GHOST_Rect.h Cleanup: doxygen comments in ghost 2020-11-06 14:25:44 +11:00
GHOST_Types.h Cleanup: correct spelling in comments 2021-02-05 16:23:34 +11:00