summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfvogelnew1@free.fr <fvogel>2015-05-30 09:30:07 (GMT)
committerfvogelnew1@free.fr <fvogel>2015-05-30 09:30:07 (GMT)
commitd080ed23c6e179e72d063c6d3976210638865adb (patch)
tree8268faa6fc4d40dea8f81c6d941dc64570d92525
parent4cf3cb0dcb352b028b6d412ba64884135bcdd1f8 (diff)
downloadtk-d080ed23c6e179e72d063c6d3976210638865adb.zip
tk-d080ed23c6e179e72d063c6d3976210638865adb.tar.gz
tk-d080ed23c6e179e72d063c6d3976210638865adb.tar.bz2
Propagated UnMap events of a panedwindow to its childrenbug_1292219
-rw-r--r--generic/tkPanedWindow.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/generic/tkPanedWindow.c b/generic/tkPanedWindow.c
index 3ae473a..d61fae3 100644
--- a/generic/tkPanedWindow.c
+++ b/generic/tkPanedWindow.c
@@ -1324,6 +1324,7 @@ PanedWindowEventProc(
XEvent *eventPtr) /* Information about event. */
{
PanedWindow *pwPtr = (PanedWindow *) clientData;
+ int i;
if (eventPtr->type == Expose) {
if (pwPtr->tkwin != NULL && !(pwPtr->flags & REDRAW_PENDING)) {
@@ -1338,6 +1339,10 @@ PanedWindowEventProc(
}
} else if (eventPtr->type == DestroyNotify) {
DestroyPanedWindow(pwPtr);
+ } else if (eventPtr->type == UnmapNotify) {
+ for (i = 0; i < pwPtr->numSlaves; i++) {
+ Tk_UnmapWindow(pwPtr->slaves[i]->tkwin);
+ }
}
}