From bd3e4458f075425d0c023eafb0cd1fa07d3ed434 Mon Sep 17 00:00:00 2001 From: hobbs Date: Wed, 17 Nov 2004 22:18:07 +0000 Subject: * generic/tkPanedWindow.c (Tk_PanedWindowObjCmd): set save_under X attr to prevent expose events when moving sash. [Bug 1036963] --- generic/tkPanedWindow.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/generic/tkPanedWindow.c b/generic/tkPanedWindow.c index ee4dc40..d353b61 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.6 2004/08/18 08:23:07 dkf Exp $ + * RCS: @(#) $Id: tkPanedWindow.c,v 1.13.2.7 2004/11/17 22:18:07 hobbs Exp $ */ #include "tkPort.h" @@ -341,6 +341,7 @@ Tk_PanedWindowObjCmd(clientData, interp, objc, objv) PanedWindow *pwPtr; Tk_Window tkwin, parent; OptionTables *pwOpts; + XSetWindowAttributes atts; if (objc < 2) { Tcl_WrongNumArgs(interp, 1, objv, "pathName ?options?"); @@ -429,11 +430,15 @@ Tk_PanedWindowObjCmd(clientData, interp, objc, objv) * panedwindow despite being children of windows with potentially * different characteristics, and it looks better that way too. * [Bug 702230] + * Also Set the X window save under attribute to avoid expose events as + * the proxy sash is dragged across the panes. [Bug 1036963] */ Tk_SetWindowVisual(pwPtr->proxywin, Tk_Visual(tkwin), Tk_Depth(tkwin), Tk_Colormap(tkwin)); Tk_CreateEventHandler(pwPtr->proxywin, ExposureMask, ProxyWindowEventProc, (ClientData) pwPtr); + atts.save_under = True; + Tk_ChangeWindowAttributes(pwPtr->proxywin, CWSaveUnder, &atts); if (ConfigurePanedWindow(interp, pwPtr, objc - 2, objv + 2) != TCL_OK) { Tk_DestroyWindow(pwPtr->proxywin); -- cgit v0.12