http://bugs.winehq.org/show_bug.cgi?id=58893
--- Comment #2 from Dmitry Timoshkov dmitry@baikal.ru --- (In reply to Rémi Bernon from comment #1)
Created attachment 79603 [details] Possible fix
Does this help?
Yes, it does. However, why XFlush() is necessary? In all existing Wine versions, starting from 1.0 till 10.0, sync_window_text() doesn't call XFlush() and changing window text worked smoothly.