mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
server: Send emulated mouse messages on primary pointer updates.
This commit is contained in:
parent
40b65e28a7
commit
24ad74ee26
1 changed files with 17 additions and 0 deletions
|
@ -2274,6 +2274,23 @@ static void queue_pointer_message( struct pointer *pointer, int repeated )
|
|||
queue_hardware_message( desktop, msg, 1 );
|
||||
}
|
||||
|
||||
if (!repeated && pointer->primary && (msg = alloc_hardware_message( 0xff515700, source, time, 0 )))
|
||||
{
|
||||
unsigned int message = WM_MOUSEMOVE;
|
||||
if (input->hw.msg == WM_POINTERDOWN) message = WM_LBUTTONDOWN;
|
||||
else if (input->hw.msg == WM_POINTERUP) message = WM_LBUTTONUP;
|
||||
|
||||
msg->win = get_user_full_handle( win );
|
||||
msg->msg = message;
|
||||
msg->wparam = 0;
|
||||
msg->lparam = 0;
|
||||
msg->x = x;
|
||||
msg->y = y;
|
||||
|
||||
if (!send_hook_ll_message( desktop, msg, input, NULL ))
|
||||
queue_hardware_message( desktop, msg, 0 );
|
||||
}
|
||||
|
||||
if (input->hw.msg != WM_POINTERUP)
|
||||
{
|
||||
pointer->input.hw.msg = WM_POINTERUPDATE;
|
||||
|
|
Loading…
Reference in a new issue