[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34420] trunk/blender/intern/ghost/intern/ GHOST_WindowX11.cpp: Ghost: X11 Set the default max width and max height value.
Diego Borghetti
bdiego at gmail.com
Thu Jan 20 21:24:18 CET 2011
Revision: 34420
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34420
Author: bdiego
Date: 2011-01-20 20:24:18 +0000 (Thu, 20 Jan 2011)
Log Message:
-----------
Ghost:X11 Set the default max width and max height value.
Some window manager can set default value of this to be the
screen size, so running blender with -p or --window-geometry
don't work with value bigger than that.
This commit try to "avoid" the bug #25709, but at the end
depend on the window manager, so maybe work or maybe not.
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 2011-01-20 18:34:48 UTC (rev 34419)
+++ trunk/blender/intern/ghost/intern/GHOST_WindowX11.cpp 2011-01-20 20:24:18 UTC (rev 34420)
@@ -342,13 +342,15 @@
// we want this window treated.
XSizeHints * xsizehints = XAllocSizeHints();
- xsizehints->flags = PPosition | PSize | PMinSize;
+ xsizehints->flags = PPosition | PSize | PMinSize | PMaxSize;
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
+ xsizehints->max_width= 65535;
+ xsizehints->max_height= 65535;
XSetWMNormalHints(m_display, m_window, xsizehints);
XFree(xsizehints);
More information about the Bf-blender-cvs
mailing list