-
- Downloads
animcur: Run the timer from the device, not the screen
This is very slightly more efficient since the callback now doesn't need to walk every input device, instead we know exactly which device's cursor is being updated. AnimCurTimerNotify() gets outdented nicely as a result. A more important side effect is that we can stop using the TimerAbsolute mode and just pass in the relative delay. In AnimCurSetCursorPosition, we no longer need to rearm the timer with the new screen; it is enough to update the device's state. In AnimCurDisplayCursor we need to notice when we're switching from animated cursor to regular and cancel the existing timer. Reviewed-by:Robert Morell <rmorell@nvidia.com> Tested-by:
Robert Morell <rmorell@nvidia.com> Signed-off-by:
Adam Jackson <ajax@redhat.com>
Please register or sign in to comment