Browse Source

[Brl.GLGraphics] Allow positioning graphics window on Linux

Ronny Otto 3 years ago
parent
commit
9be372f105
1 changed files with 3 additions and 1 deletions
  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 );