http://bugs.winehq.org/show_bug.cgi?id=11846
--- Comment #24 from John Klehm xixsimplicityxix@gmail.com 2008-04-18 12:32:59 --- Ahh my eyes bleed from all the logs. But ok I think I'm closer now. Sai uses child windows for the drawing contexts. We call into X11DRV_get_whole_window with the hwnd of the context. The call to x11drv fails because there are no valid x11 windows for our child windows afaict. I don't have time now but I think if we find the correct parent hwnd that links with a valid x11 window we should be able to connect the event queue to wintab.
AttachEventQueueToTablet is returning with 0 due to the failed x11drv call now which is why there are no events in any of the logs.
Maybe more tonight. hrmm