From d080ed23c6e179e72d063c6d3976210638865adb Mon Sep 17 00:00:00 2001 From: "fvogelnew1@free.fr" Date: Sat, 30 May 2015 09:30:07 +0000 Subject: Propagated UnMap events of a panedwindow to its children --- generic/tkPanedWindow.c | 5 +++++ 1 file changed, 5 insertions(+) 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); + } } } -- cgit v0.12