Update wine to 1.2.
[sugaredwine.git] / patches / 0005-winex11-use-a-flag-that-I-don-t-understand-when-pro.patch
blob9c1a3fc9c0e7eb7009354ded209f7df710a2433e
1 From e64bad4af8d1bff4eddeb734ee98abdca45b3e64 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
10 what they are yet.
11 ---
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 d9da4d2..e2484ee 100644
17 --- a/dlls/winex11.drv/keyboard.c
18 +++ b/dlls/winex11.drv/keyboard.c
19 @@ -1483,7 +1483,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 /**********************************************************************
28 --
29 1.5.6.5