[Spice-devel] [PATCH vdagent-win] vdagent: fix loss of mouse movement events
free.user.name
free.user.name at ya.ru
Fri Feb 23 12:06:29 UTC 2018
On Fri, Feb 16, 2018 at 03:05:39PM +0300, free.user.name wrote:
> send_input() may not be immediately called from handle_mouse_event() on
> movement. INPUT structure is generated and stored and a timer may be set
> instead. If subsequent call to handle_mouse_event() occurs before timer
> expires, prepared INPUT structure gets overwritten and MOUSEEVENTF_MOVE
> bit is lost. Windows doesn't see updated mouse position as the result.
>
> Make handle_mouse_event() merely store the new mouse state, and move
> INPUT structure generation to send_input(). Shuffle new mouse state to
> previous only after mouse events are submitted to SendInput() Windows
> API function.
Ping. Is Windows vdagent still maintained?
More information about the Spice-devel
mailing list