Patch for crash caused by XIM and make XIM functions properly

Dmitry Timoshkov dmitry at baikal.ru
Fri Jan 24 08:37:04 CST 2003


"liu spider" <liuspider at yahoo.com> wrote:

> @@ -1000,8 +1100,11 @@
>  
>      wine_tsx11_lock();
>      if (xic)
> -        ascii_chars = XmbLookupString(xic, event, Str, sizeof(Str), &keysym, NULL);
> -    else
> +    {
> +        if(XIM_KeyEvent(GetFocus(), xic, event))
> +            return;
> +    }
> +
>          ascii_chars = XLookupString(event, Str, sizeof(Str), &keysym, NULL);
>      wine_tsx11_unlock();

I can't comment on other parts, but in the above chunk the return after
a successful XIM_KeyEvent() leaves X11 lock held.

-- 
Dmitry.






More information about the wine-devel mailing list