http://bugs.winehq.org/show_bug.cgi?id=29630
--- Comment #4 from Lauri Koponen lauri.koponen@iki.fi 2012-01-19 12:10:38 CST --- Now, I don't know (at least yet) why the code was originally written the way it was, but I got the example working with this change:
diff --git a/dlls/winex11.drv/window.c b/dlls/winex11.drv/window.c index e6affcb..3937b20 100644 --- a/dlls/winex11.drv/window.c +++ b/dlls/winex11.drv/window.c @@ -591,7 +591,7 @@ static BOOL set_win_format( HWND hwnd, XID fbconfig_id ) XInstallColormap(gdi_display, attrib.colormap);
if(data->gl_drawable) XDestroyWindow(gdi_display, data->gl_drawable); - data->gl_drawable = XCreateWindow(gdi_display, dummy_parent, -w, 0, w, + data->gl_drawable = XCreateWindow(gdi_display, dummy_parent, 0, 0, w, h vis->depth, InputOutput, vis->visual, CWColormap | CWOverrideRedirect, &attrib);
But what is the reason that (-w) is there for?