浏览代码

[Brl.GLGraphics] Allow positioning graphics window on Linux

Ronny Otto 3 年之前
父节点
当前提交
9be372f105
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      glgraphics.mod/glgraphics.linux.c

+ 3 - 1
glgraphics.mod/glgraphics.linux.c

@@ -332,7 +332,9 @@ BBGLContext *bbGLGraphicsCreateGraphics( int width,int height,int depth,int hz,B
 
 		//Set window min/max size		
 		hints=XAllocSizeHints();
-		hints->flags=PMinSize|PMaxSize;
+		hints->flags=PMinSize|PMaxSize|PPosition;
+		hints->x = x;
+		hints->y = y;
 		hints->min_width=hints->max_width=width;
 		hints->min_height=hints->max_height=height;
 		XSetWMNormalHints( xdisplay,window,hints );