Don't force injected hardware messages to be queued in the current

thread.
This commit is contained in:
Alexandre Julliard 2005-03-16 20:10:35 +00:00
parent 073d5f2b79
commit 9ff2eea0e1
2 changed files with 2 additions and 2 deletions

View File

@ -1098,7 +1098,7 @@ void X11DRV_send_keyboard_input( WORD wVk, WORD wScan, DWORD dwFlags, DWORD time
SERVER_START_REQ( send_message ) SERVER_START_REQ( send_message )
{ {
req->id = GetCurrentThreadId(); req->id = (injected_flags & LLKHF_INJECTED) ? 0 : GetCurrentThreadId();
req->type = MSG_HARDWARE; req->type = MSG_HARDWARE;
req->flags = 0; req->flags = 0;
req->win = 0; req->win = 0;

View File

@ -149,7 +149,7 @@ static void queue_raw_mouse_message( UINT message, HWND hwnd, DWORD x, DWORD y,
SERVER_START_REQ( send_message ) SERVER_START_REQ( send_message )
{ {
req->id = GetCurrentThreadId(); req->id = (injected_flags & LLMHF_INJECTED) ? 0 : GetCurrentThreadId();
req->type = MSG_HARDWARE; req->type = MSG_HARDWARE;
req->flags = 0; req->flags = 0;
req->win = hwnd; req->win = hwnd;