1 From 458074baee5c913f36b1015d612de2b8adee8f01 Mon Sep 17 00:00:00 2001
2 From: Vincent Povirk <vincent@codeweavers.com>
3 Date: Thu, 25 Sep 2008 16:24:28 -0500
4 Subject: [PATCH] winex11: use a flag that I don't understand when processing keyboard events
6 This works around an issue I also don't understand where keyboard events
7 only go to windows when the pointer is above them.
9 I'm sure this has unintended consequences, but I'm glad I don't know
12 dlls/winex11.drv/keyboard.c | 2 +-
13 1 files changed, 1 insertions(+), 1 deletions(-)
15 diff --git a/dlls/winex11.drv/keyboard.c b/dlls/winex11.drv/keyboard.c
16 index c9e4d16..83ec5d8 100644
17 --- a/dlls/winex11.drv/keyboard.c
18 +++ b/dlls/winex11.drv/keyboard.c
19 @@ -1463,7 +1463,7 @@ void X11DRV_KeyEvent( HWND hwnd, XEvent *xev )
20 bScan = keyc2scan[event->keycode] & 0xFF;
21 TRACE_(key)("bScan = 0x%02x.\n", bScan);
23 - X11DRV_send_keyboard_input( vkey & 0xff, bScan, dwFlags, event_time, 0, 0 );
24 + X11DRV_send_keyboard_input( vkey & 0xff, bScan, dwFlags, event_time, 0, LLKHF_INJECTED );
27 /**********************************************************************