From 10b4eaee27c5b115b46ff02e96cdaf19c16a70c5 Mon Sep 17 00:00:00 2001 From: chengyemao Date: Fri, 17 Dec 2004 13:56:15 +0000 Subject: Make the container draw its background to avoid an unpainted toplevel when the embedded window is NULL --- generic/tkFrame.c | 5 ++--- 1 file 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; } -- cgit v0.12