summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2007-05-08 10:49:31 +1000
committerJosé Fonseca <jfonseca@vmware.com>2011-07-11 20:03:35 +0100
commit14273c06ffd74d22d1987214d522c85692c66597 (patch)
treec534b1520bbf8a0424c3da371b00b4846d8d57db
parenta9b2bff1a25bc79495c606562a43c0ed037a3779 (diff)
downloadglut-14273c06ffd74d22d1987214d522c85692c66597.tar.gz
miniglx/glut: should use the x/y pos to create window
This allows moving miniglx glut windows around the framebuffer
-rw-r--r--src/glut/mini/window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glut/mini/window.c b/src/glut/mini/window.c
index 7326676..5a59e64 100644
--- a/src/glut/mini/window.c
+++ b/src/glut/mini/window.c
@@ -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) {