http://bugs.winehq.org/show_bug.cgi?id=4923
--- Comment #6 from Peter Åstrand peter@cendio.se 2008-06-05 04:04:23 --- Created an attachment (id=13709) --> (http://bugs.winehq.org/attachment.cgi?id=13709) xfake.c - Utility for sending faked X11 events
This small program can be used to trigger the Wine race condition[*], even outside Xvnc. When the sleep() line is commented out, AltGr+2 will sometimes give "2" in Wine, instead of "@". Sometimes it's necessary to load the system slightly to trigger this.
[*]: Well, at least this was true 2006-03-24. Using the latest CVS version I cannot reproduce the problem, neither with or without the suggested patch.