summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2003-07-18 10:02:02 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2003-07-18 10:02:02 (GMT)
commit2a536d15c96c18d94c90cfb3eb881e912a960964 (patch)
treee0b942f1cfe64b5312fff662adef925000764b44 /generic
parent2b7692adde444f5fddd9059308d594aaa73039da (diff)
downloadtk-2a536d15c96c18d94c90cfb3eb881e912a960964.zip
tk-2a536d15c96c18d94c90cfb3eb881e912a960964.tar.gz
tk-2a536d15c96c18d94c90cfb3eb881e912a960964.tar.bz2
Fix for [Bug 702230], and an evil bug it is too!
Diffstat (limited to 'generic')
-rw-r--r--generic/tkPanedWindow.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/generic/tkPanedWindow.c b/generic/tkPanedWindow.c
index eb0108f..873243c 100644
--- a/generic/tkPanedWindow.c
+++ b/generic/tkPanedWindow.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: tkPanedWindow.c,v 1.15 2003/07/17 00:39:53 hobbs Exp $
+ * RCS: @(#) $Id: tkPanedWindow.c,v 1.16 2003/07/18 10:02:03 dkf Exp $
*/
#include "tkPort.h"
@@ -424,6 +424,14 @@ Tk_PanedWindowObjCmd(clientData, interp, objc, objv)
}
pwPtr->proxywin = Tk_CreateAnonymousWindow(interp, parent, (char *) NULL);
+ /*
+ * The proxy window has to be able to share GCs with the main
+ * panedwindow despite being children of windows with potentially
+ * different characteristics, and it looks better that way too.
+ * [Bug 702230]
+ */
+ Tk_SetWindowVisual(pwPtr->proxywin,
+ Tk_Visual(tkwin), Tk_Depth(tkwin), Tk_Colormap(tkwin));
Tk_CreateEventHandler(pwPtr->proxywin, ExposureMask, ProxyWindowEventProc,
(ClientData) pwPtr);