http://bugs.winehq.org/show_bug.cgi?id=31882
Ken Thomases ken@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ken@codeweavers.com
--- Comment #53 from Ken Thomases ken@codeweavers.com 2012-10-28 14:22:25 CDT --- (In reply to comment #49)
Created attachment 42273 [details] patch
Actually, the attached patch seems fairly good at avoiding the issue. I'm not quite familiar enough with all the code to judge how proper this is, but the basic idea is to avoid making X11 calls until message handler has had a chance to finish.
The problem is that you really do want to flush the surface before waiting on events. You can't have unflushed drawing pending for indefinite periods, especially if the the user is supposed to be reacting to whatever is supposed to have been drawn.