winex11: Update the cursor also for events ignored by a hook.
This commit is contained in:
parent
364242fcf3
commit
5ee89aad68
|
@ -304,7 +304,8 @@ static void queue_raw_mouse_message( UINT message, HWND hwnd, DWORD x, DWORD y,
|
|||
hook.dwExtraInfo = extra_info;
|
||||
|
||||
last_time_modified = GetTickCount();
|
||||
if (HOOK_CallHooks( WH_MOUSE_LL, HC_ACTION, message, (LPARAM)&hook, TRUE )) return;
|
||||
if (HOOK_CallHooks( WH_MOUSE_LL, HC_ACTION, message, (LPARAM)&hook, TRUE ))
|
||||
message = 0; /* ignore it */
|
||||
|
||||
SERVER_START_REQ( send_hardware_message )
|
||||
{
|
||||
|
|
|
@ -1717,9 +1717,11 @@ DECL_HANDLER(send_hardware_message)
|
|||
return;
|
||||
}
|
||||
input = thread->queue->input;
|
||||
reply->cursor = input->cursor;
|
||||
reply->count = input->cursor_count;
|
||||
}
|
||||
|
||||
if (!(data = mem_alloc( sizeof(*data) )))
|
||||
if (!req->msg || !(data = mem_alloc( sizeof(*data) )))
|
||||
{
|
||||
if (thread) release_object( thread );
|
||||
return;
|
||||
|
@ -1744,12 +1746,7 @@ DECL_HANDLER(send_hardware_message)
|
|||
}
|
||||
else free( data );
|
||||
|
||||
if (thread)
|
||||
{
|
||||
reply->cursor = input->cursor;
|
||||
reply->count = input->cursor_count;
|
||||
release_object( thread );
|
||||
}
|
||||
if (thread) release_object( thread );
|
||||
}
|
||||
|
||||
/* post a quit message to the current queue */
|
||||
|
|
Loading…
Reference in New Issue