miniglx/glut: should use the x/y pos to create window

This allows moving miniglx glut windows around the framebuffer
This commit is contained in:
Dave Airlie 2007-05-08 10:49:31 +10:00
parent f1770c3210
commit 401629c721

View file

@ -90,7 +90,7 @@ int APIENTRY glutCreateWindow (const char *title)
attr.event_mask = StructureNotifyMask | ExposureMask;
mask = CWBackPixel | CWBorderPixel | CWColormap | CWEventMask;
win = XCreateWindow( dpy, root, 0, 0, g_width, g_height,
win = XCreateWindow( dpy, root, g_xpos, g_ypos, g_width, g_height,
0, visinfo->depth, InputOutput,
visinfo->visual, mask, &attr );
if (!win) {