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.
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.
AttachEventQueu eToTablet 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