update Wine to wine-1.1.28
[sugaredwine.git] / patches / 0005-winex11-use-a-flag-that-I-don-t-understand-when-pro.patch
blob00db08ea95c38454962b8d7c5a2bbd47281ccdaa
1 From 7bd757867e4c4b18855b85834feec2ae50c03a64 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 3da7183..9185de0 100644
17 --- a/dlls/winex11.drv/keyboard.c
18 +++ b/dlls/winex11.drv/keyboard.c
19 @@ -1478,7 +1478,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