summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorhobbs <hobbs>2004-11-17 22:16:58 (GMT)
committerhobbs <hobbs>2004-11-17 22:16:58 (GMT)
commit428630ec2f40b944fa66fa3bfad3bcc9e50153d6 (patch)
tree006b9ea33be2e2f5c23f25ffe42e6b4e9f540e45 /generic
parentf70b4fc9939b24b58f2a02d21621211d56da629a (diff)
downloadtk-428630ec2f40b944fa66fa3bfad3bcc9e50153d6.zip
tk-428630ec2f40b944fa66fa3bfad3bcc9e50153d6.tar.gz
tk-428630ec2f40b944fa66fa3bfad3bcc9e50153d6.tar.bz2
* generic/tkPanedWindow.c (Tk_PanedWindowObjCmd): set save_under X
attr to prevent expose events when moving sash. [Bug 1036963]
Diffstat (limited to 'generic')
-rw-r--r--generic/tkPanedWindow.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/generic/tkPanedWindow.c b/generic/tkPanedWindow.c
index a180ca6..ab7bde9 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.21 2004/10/24 17:22:55 dkf Exp $
+ * RCS: @(#) $Id: tkPanedWindow.c,v 1.22 2004/11/17 22:16:58 hobbs Exp $
*/
#include "tkPort.h"
@@ -376,6 +376,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?");
@@ -464,11 +465,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);