Re: winex11.drv: Remember last window that had the XIC focus and use it in ToUnicode() to make dead keys work more reliably.
22 Jul
2010
22 Jul
'10
11:14 a.m.
Dmitry Timoshkov <dmitry(a)codeweavers.com> writes:
@@ -2541,9 +2541,13 @@ INT CDECL X11DRV_ToUnicodeEx(UINT virtKey, UINT scanCode, const BYTE *lpKeyState e.state = 0; e.type = KeyPress;
- focus = GetFocus(); - if (focus) focus = GetAncestor( focus, GA_ROOT ); - if (!focus) focus = GetActiveWindow(); + focus = x11drv_thread_data()->last_xic_hwnd; + if (!focus) + { + HWND focus = GetFocus(); + if (focus) focus = GetAncestor( focus, GA_ROOT ); + if (!focus) focus = GetActiveWindow(); + }
Have you tested that code path? This can't possibly work. -- Alexandre Julliard julliard(a)winehq.org
5627
Age (days ago)
5627
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard