Cloudor Pu wrote:
Now, how can I get X11 window id by HWND in my program? I saw a patch GetX11WindowId at http://www.mail-archive.com/wine-devel@winehq.com/msg05282.html But this cannot be found in the latest wine. Can I get xwindow id by HWND without patching wine?
Only top level (managed) windows have an X window ID. You can see how Wine manages HWND -> X Window mappings in dlls/winex11.drv/window.c in the function X11DRV_get_whole_window(). This is likely subject to change...
Mike