http://bugs.winehq.org/show_bug.cgi?id=18061
--- Comment #3 from Jeff Zaroyko jeffz@jeffz.name 2009-04-16 07:48:14 --- after adding some traces, I can see that:
set_win_format seems to return FALSE early
if (!(data = X11DRV_get_win_data(hwnd)) && !(data = X11DRV_create_win_data(hwnd))) return FALSE;
X11DRV_get_win_data returns NULL because XFindContext fails X11DRV_create_win_data fails at "if (parent != GetDesktopWindow() && !GetAncestor( parent, GA_PARENT )) return NULL;"