Tk Source Code

Artifact [55e5f537]
Login

Artifact 55e5f537acc1362068f89542304b18aa1eceb1f1:

Attachment "tk84-wm-resizable.patch" to ticket [1006686f] added by jenglish 2004-08-11 01:11:08.
Date: Tue Aug 10 11:06:28 PDT 2004
Files: unix/tkUnixWm.c
Bugid: 1006686

--- unix/tkUnixWm.c.wm-resizable.old	2004-08-10 10:58:12.000000000 -0700
+++ unix/tkUnixWm.c	2004-08-10 11:04:40.000000000 -0700
@@ -4239,6 +4239,7 @@
 	    hintsPtr->min_width = winPtr->reqWidth;
 	}
 	hintsPtr->max_width = hintsPtr->min_width;
+	hintsPtr->flags |= PMaxSize;
     }
     if (wmPtr->flags & WM_HEIGHT_NOT_RESIZABLE) {
 	if (wmPtr->height >= 0) {
@@ -4247,6 +4248,7 @@
 	    hintsPtr->min_height = winPtr->reqHeight + wmPtr->menuHeight;
 	}
 	hintsPtr->max_height = hintsPtr->min_height;
+	hintsPtr->flags |= PMaxSize;
     }
 
     XSetWMNormalHints(winPtr->display, wmPtr->wrapperPtr->window, hintsPtr);