diff options
author | donal.k.fellows@manchester.ac.uk <dkf> | 2003-07-18 09:53:16 (GMT) |
---|---|---|
committer | donal.k.fellows@manchester.ac.uk <dkf> | 2003-07-18 09:53:16 (GMT) |
commit | f42526ec0ecb102c29efc21b6e69b4dd4fb85485 (patch) | |
tree | 4dbda26557de9a03da6773c64f1e29c574504a4d /generic | |
parent | 2ae6266b4f68b20aacfba9aa1514b0caf1244240 (diff) | |
download | tk-f42526ec0ecb102c29efc21b6e69b4dd4fb85485.zip tk-f42526ec0ecb102c29efc21b6e69b4dd4fb85485.tar.gz tk-f42526ec0ecb102c29efc21b6e69b4dd4fb85485.tar.bz2 |
Fix for [Bug 702230], and what an evil bug that is!
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkPanedWindow.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/generic/tkPanedWindow.c b/generic/tkPanedWindow.c index 9763487..c0385af 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.13.2.2 2003/07/17 20:49:00 dkf Exp $ + * RCS: @(#) $Id: tkPanedWindow.c,v 1.13.2.3 2003/07/18 09:53:16 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); |