Only ignore certain keyboard events if a XLookupString returned a

value (detected by Valgrind).
This commit is contained in:
Mike McCormack 2003-09-22 19:30:51 +00:00 committed by Alexandre Julliard
parent fd16003316
commit 9360660259
1 changed files with 3 additions and 2 deletions

View File

@ -1010,8 +1010,9 @@ void X11DRV_KeyEvent( HWND hwnd, XKeyEvent *event )
wine_tsx11_unlock();
/* Ignore some unwanted events */
if ((keysym >= XK_ISO_Lock && keysym <= XK_ISO_Last_Group_Lock) ||
keysym == XK_Mode_switch)
if (ascii_chars &&
((keysym >= XK_ISO_Lock && keysym <= XK_ISO_Last_Group_Lock) ||
keysym == XK_Mode_switch))
{
TRACE("Ignoring %s keyboard event\n", TSXKeysymToString(keysym));
return;