http://bugs.winehq.org/show_bug.cgi?id=4923
Summary: Race condition in keyboard code Product: Wine Version: CVS Platform: Other OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-x11driver AssignedTo: wine-bugs@winehq.org ReportedBy: peter@cendio.se
In some cases the key combination AltGr+2 produces "2" (wrong) rather than "@" (correct), when using a Swedish layout. The problem is a race condition: If a KeyEvent occurs almost directly after the "2" key is pressed, the AltGr state is incorrect. This is because X11DRV_KeyEvent and X11DRV_ToUnicodeEx uses the common, global, static variable: AltGrMask.
I've reported this to the mailing list, see http://www.winehq.org/pipermail/wine-devel/2006-March/045834.html.