summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjenglish <jenglish@flightlab.com>2004-08-10 18:15:59 (GMT)
committerjenglish <jenglish@flightlab.com>2004-08-10 18:15:59 (GMT)
commit2755967cfd01a2ddb9efa3be42533a6dbaba86a6 (patch)
tree0926df001f1b770ec7debbea7b4bfb2b1f415079
parent127e9129e2cd647d875d526278625f5ef05bafc3 (diff)
downloadtk-2755967cfd01a2ddb9efa3be42533a6dbaba86a6.zip
tk-2755967cfd01a2ddb9efa3be42533a6dbaba86a6.tar.gz
tk-2755967cfd01a2ddb9efa3be42533a6dbaba86a6.tar.bz2
Fix for #1006686 "wm resizable command not working on Solaris/CDE"
(patch from Colin McDonald).
-rw-r--r--ChangeLog5
-rw-r--r--unix/tkUnixWm.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b15b4c6..5f6e525 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-08-10 Joe English <jenglish@users.sourceforge.net>
+
+ * unix/tkUnixWm.c: Fix for #1006686 "wm resizable command
+ not working on Solaris/CDE" (patch from Colin McDonald).
+
2004-08-09 Mo DeJong <mdejong@users.sourceforge.net>
* tests/canvText.test:
diff --git a/unix/tkUnixWm.c b/unix/tkUnixWm.c
index 08da60b..ffd00f9 100644
--- a/unix/tkUnixWm.c
+++ b/unix/tkUnixWm.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkUnixWm.c,v 1.43 2004/07/05 19:19:43 jenglish Exp $
+ * RCS: @(#) $Id: tkUnixWm.c,v 1.44 2004/08/10 18:16:00 jenglish Exp $
*/
#include "tkPort.h"
@@ -4264,10 +4264,12 @@ UpdateSizeHints(winPtr, newWidth, newHeight)
if (wmPtr->flags & WM_WIDTH_NOT_RESIZABLE) {
hintsPtr->max_width = hintsPtr->min_width = newWidth;
+ hintsPtr->flags |= PMaxSize;
}
if (wmPtr->flags & WM_HEIGHT_NOT_RESIZABLE) {
hintsPtr->max_height = hintsPtr->min_height =
newHeight + wmPtr->menuHeight;
+ hintsPtr->flags |= PMaxSize;
}
XSetWMNormalHints(winPtr->display, wmPtr->wrapperPtr->window, hintsPtr);