diff options
author | fvogelnew1@free.fr <fvogel> | 2015-05-30 09:30:07 (GMT) |
---|---|---|
committer | fvogelnew1@free.fr <fvogel> | 2015-05-30 09:30:07 (GMT) |
commit | d080ed23c6e179e72d063c6d3976210638865adb (patch) | |
tree | 8268faa6fc4d40dea8f81c6d941dc64570d92525 | |
parent | 4cf3cb0dcb352b028b6d412ba64884135bcdd1f8 (diff) | |
download | tk-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.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); + } } } |