[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [23989] trunk/blender/intern/ghost/intern/ GHOST_WindowX11.cpp: set the min size hints for x11 to prevent tiny windows messing up blenders internal ui layout
Campbell Barton
ideasman42 at gmail.com
Tue Oct 20 09:51:42 CEST 2009
Revision: 23989
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=23989
Author: campbellbarton
Date: 2009-10-20 09:51:42 +0200 (Tue, 20 Oct 2009)
Log Message:
-----------
set the min size hints for x11 to prevent tiny windows messing up blenders internal ui layout
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 04:07:57 UTC (rev 23988)
+++ trunk/blender/intern/ghost/intern/GHOST_WindowX11.cpp 2009-10-20 07:51:42 UTC (rev 23989)
@@ -382,8 +382,18 @@
XSetWMHints(display, m_window, xwmhints );
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