Browse Source

Merge pull request #223 from GWRon/fix_allowXWindowPositioning

[Brl.GLGraphics] Allow positioning graphics window on Linux
Brucey 3 years ago
parent
commit
e9614b0ec8
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 );