winex11: Release the keyboard lock before sending input to the server.
This commit is contained in:
parent
dc9f5becd1
commit
03d377eae7
|
@ -1417,8 +1417,10 @@ void X11DRV_KeyEvent( HWND hwnd, XEvent *xev )
|
|||
TRACE_(key)("keycode %u converted to vkey 0x%X scan %02x\n",
|
||||
event->keycode, vkey, bScan);
|
||||
|
||||
if (vkey)
|
||||
{
|
||||
LeaveCriticalSection( &kbd_section );
|
||||
|
||||
if (!vkey) return;
|
||||
|
||||
dwFlags = 0;
|
||||
if ( event->type == KeyRelease ) dwFlags |= KEYEVENTF_KEYUP;
|
||||
if ( vkey & 0x100 ) dwFlags |= KEYEVENTF_EXTENDEDKEY;
|
||||
|
@ -1427,9 +1429,6 @@ void X11DRV_KeyEvent( HWND hwnd, XEvent *xev )
|
|||
|
||||
X11DRV_send_keyboard_input( hwnd, vkey & 0xff, bScan, dwFlags, event_time );
|
||||
}
|
||||
LeaveCriticalSection( &kbd_section );
|
||||
|
||||
}
|
||||
|
||||
/**********************************************************************
|
||||
* X11DRV_KEYBOARD_DetectLayout
|
||||
|
|
Loading…
Reference in New Issue