wine keyboard fix
dhliu
dh.liu at msa.hinet.net
Fri Feb 8 21:52:23 CST 2008
Some input methods can send a much longer string. The original size is
too small. Please consider enlarging it.
Thanks.
Edward Liu
wine-0.9.54/dlls/winex11.drv/keyboard.c
static WORD EVENT_event_to_vkey( XIC xic, XKeyEvent *e)
{
KeySym keysym = 0;
Status status;
char buf[256]; <------------------------------
/* Clients should pass only KeyPress events to XmbLookupString */
if (xic && e->type == KeyPress)
XmbLookupString(xic, e, buf, sizeof(buf), &keysym, &status);
else
XLookupString(e, buf, sizeof(buf), &keysym, NULL);
..............
void X11DRV_KeyEvent( HWND hwnd, XEvent *xev )
{
XKeyEvent *event = &xev->xkey;
char Str[256];
<----------------------------------------
KeySym keysym = 0;
More information about the wine-patches
mailing list