summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2015-06-01 18:50:33 (GMT)
committerfvogel <fvogelnew1@free.fr>2015-06-01 18:50:33 (GMT)
commit3f5313f26714dded98a8f8eb1ad8c14038de8e03 (patch)
tree0b7243a54322f280330e26b2b528963034ad166c /generic
parent4987add5243346bfaa8e93f2820e058cd4e9049f (diff)
parentc3568e0e0c937efefe967c9ad8227e5eb5f8c10a (diff)
downloadtk-3f5313f26714dded98a8f8eb1ad8c14038de8e03.zip
tk-3f5313f26714dded98a8f8eb1ad8c14038de8e03.tar.gz
tk-3f5313f26714dded98a8f8eb1ad8c14038de8e03.tar.bz2
Fixed bug [1292219fff] - Propagated MapNotify and UnmapNotify events of a panedwindow to its children
Diffstat (limited to 'generic')
-rw-r--r--generic/tkPanedWindow.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/generic/tkPanedWindow.c b/generic/tkPanedWindow.c
index 384a3eb..74c9999 100644
--- a/generic/tkPanedWindow.c
+++ b/generic/tkPanedWindow.c
@@ -1340,6 +1340,7 @@ PanedWindowEventProc(
XEvent *eventPtr) /* Information about event. */
{
PanedWindow *pwPtr = clientData;
+ int i;
if (eventPtr->type == Expose) {
if (pwPtr->tkwin != NULL && !(pwPtr->flags & REDRAW_PENDING)) {
@@ -1354,6 +1355,14 @@ 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);
+ }
+ } else if (eventPtr->type == MapNotify) {
+ for (i = 0; i < pwPtr->numSlaves; i++) {
+ Tk_MapWindow(pwPtr->slaves[i]->tkwin);
+ }
}
}