From 9ff2eea0e12a5320d1331882e7146f6b8f0825b3 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 16 Mar 2005 20:10:35 +0000 Subject: [PATCH] Don't force injected hardware messages to be queued in the current thread. --- dlls/x11drv/keyboard.c | 2 +- dlls/x11drv/mouse.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/x11drv/keyboard.c b/dlls/x11drv/keyboard.c index 2e32ecf423c..7b8446517ed 100644 --- a/dlls/x11drv/keyboard.c +++ b/dlls/x11drv/keyboard.c @@ -1098,7 +1098,7 @@ void X11DRV_send_keyboard_input( WORD wVk, WORD wScan, DWORD dwFlags, DWORD time SERVER_START_REQ( send_message ) { - req->id = GetCurrentThreadId(); + req->id = (injected_flags & LLKHF_INJECTED) ? 0 : GetCurrentThreadId(); req->type = MSG_HARDWARE; req->flags = 0; req->win = 0; diff --git a/dlls/x11drv/mouse.c b/dlls/x11drv/mouse.c index 2917e183903..4da199fa34a 100644 --- a/dlls/x11drv/mouse.c +++ b/dlls/x11drv/mouse.c @@ -149,7 +149,7 @@ static void queue_raw_mouse_message( UINT message, HWND hwnd, DWORD x, DWORD y, SERVER_START_REQ( send_message ) { - req->id = GetCurrentThreadId(); + req->id = (injected_flags & LLMHF_INJECTED) ? 0 : GetCurrentThreadId(); req->type = MSG_HARDWARE; req->flags = 0; req->win = hwnd;