[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [23990] trunk/blender/intern/ghost/intern/ GHOST_WindowX11.cpp: hrmf, we're alredy setting the size hints elsewhere

Campbell Barton ideasman42 at gmail.com
Tue Oct 20 09:54:07 CEST 2009


Revision: 23990
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23990
Author:   campbellbarton
Date:     2009-10-20 09:54:07 +0200 (Tue, 20 Oct 2009)

Log Message:
-----------
hrmf, we're alredy setting the size hints elsewhere

Modified Paths:
--------------
    trunk/blender/intern/ghost/intern/GHOST_WindowX11.cpp

Modified: trunk/blender/intern/ghost/intern/GHOST_WindowX11.cpp
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_WindowX11.cpp	2009-10-20 07:51:42 UTC (rev 23989)
+++ trunk/blender/intern/ghost/intern/GHOST_WindowX11.cpp	2009-10-20 07:54:07 UTC (rev 23990)
@@ -297,11 +297,13 @@
 	// we want this window treated.
 
 	XSizeHints * xsizehints = XAllocSizeHints();
-	xsizehints->flags = USPosition | USSize;
+	xsizehints->flags = USPosition | USSize | PMinSize;
 	xsizehints->x = left;
 	xsizehints->y = top;
 	xsizehints->width = width;
 	xsizehints->height = height;
+	xsizehints->min_width= 320;  	// size hints, could be made apart of the ghost api
+	xsizehints->min_height= 240;	// limits are also arbitrary, but should not allow 1x1 window
 	XSetWMNormalHints(m_display, m_window, xsizehints);
 	XFree(xsizehints);
 
@@ -383,17 +385,6 @@
 	XFree(xwmhints);
 	// done setting the icon
 
-	
-	// size hints, could be made apart of the ghost api
-	// limits are also arbitrary, but should not allow 1x1 window
-	XSizeHints *size_hints= XAllocSizeHints();
-	size_hints->flags = PMinSize;
-	size_hints->min_width= 320;
-	size_hints->min_height= 240;
-	XSetWMNormalHints(display, m_window, size_hints);
-
-
-
 	setTitle(title);
 
 	initXInputDevices();





More information about the Bf-blender-cvs mailing list