summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2015-05-30 09:30:07 (GMT)
committerfvogel <fvogelnew1@free.fr>2015-05-30 09:30:07 (GMT)
commit4f4e282b4f51861b64a0a16d75542c74faa7b846 (patch)
treeb35051d6b794af36faf6db5b60e42e1af47dc713 /generic
parenta05d1fea7d8d233f5b557a5645d5a996cc33a0b2 (diff)
downloadtk-4f4e282b4f51861b64a0a16d75542c74faa7b846.zip
tk-4f4e282b4f51861b64a0a16d75542c74faa7b846.tar.gz
tk-4f4e282b4f51861b64a0a16d75542c74faa7b846.tar.bz2
Propagated UnmapNotify events of a panedwindow to its children
Diffstat (limited to 'generic')
-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);
+ }
}
}