diff options
author | fvogel <fvogelnew1@free.fr> | 2015-05-30 09:30:07 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2015-05-30 09:30:07 (GMT) |
commit | 4f4e282b4f51861b64a0a16d75542c74faa7b846 (patch) | |
tree | b35051d6b794af36faf6db5b60e42e1af47dc713 /generic | |
parent | a05d1fea7d8d233f5b557a5645d5a996cc33a0b2 (diff) | |
download | tk-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.c | 5 |
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); + } } } |