summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorchengyemao <chengyemao>2004-12-17 13:56:15 (GMT)
committerchengyemao <chengyemao>2004-12-17 13:56:15 (GMT)
commit10b4eaee27c5b115b46ff02e96cdaf19c16a70c5 (patch)
tree636bdb70864de465dced639c6ccd86eed00bdedb /generic
parent6cb4d2f26989c2ccc5a8f1bc327b5cffe220789d (diff)
downloadtk-10b4eaee27c5b115b46ff02e96cdaf19c16a70c5.zip
tk-10b4eaee27c5b115b46ff02e96cdaf19c16a70c5.tar.gz
tk-10b4eaee27c5b115b46ff02e96cdaf19c16a70c5.tar.bz2
Make the container draw its background to avoid an unpainted toplevel when the embedded window is NULL
Diffstat (limited to 'generic')
-rw-r--r--generic/tkFrame.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/generic/tkFrame.c b/generic/tkFrame.c
index 8a50675..f6ae5cb 100644
--- a/generic/tkFrame.c
+++ b/generic/tkFrame.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: tkFrame.c,v 1.17 2004/01/13 02:06:00 davygrvy Exp $
+ * RCS: @(#) $Id: tkFrame.c,v 1.18 2004/12/17 13:56:15 chengyemao Exp $
*/
#include "default.h"
@@ -1397,8 +1397,7 @@ DisplayFrame(clientData)
TkRegion clipRegion = NULL;
framePtr->flags &= ~REDRAW_PENDING;
- if ((framePtr->tkwin == NULL) || !Tk_IsMapped(tkwin)
- || framePtr->isContainer) {
+ if ((framePtr->tkwin == NULL) || !Tk_IsMapped(tkwin)) {
return;
}