summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-03-10 07:22:18 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-03-10 07:22:18 (GMT)
commit02bbc0235b0a2c024ec363c9133baf0a77a752b5 (patch)
tree7ef366ad78ab670dcb65f779856375a821f1fb7f /generic
parente0bd909e9cbf88687b78a5bea9cf90fe251bf3c9 (diff)
downloadtk-02bbc0235b0a2c024ec363c9133baf0a77a752b5.zip
tk-02bbc0235b0a2c024ec363c9133baf0a77a752b5.tar.gz
tk-02bbc0235b0a2c024ec363c9133baf0a77a752b5.tar.bz2
Fixed bug [d95e5d8f16] - Hidden panes in panedwindow incorrectly trigger <Map> events, patch from Brian Griffin
Diffstat (limited to 'generic')
-rw-r--r--generic/tkPanedWindow.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/generic/tkPanedWindow.c b/generic/tkPanedWindow.c
index 2451647..f350d0a 100644
--- a/generic/tkPanedWindow.c
+++ b/generic/tkPanedWindow.c
@@ -1370,11 +1370,15 @@ PanedWindowEventProc(
DestroyPanedWindow(pwPtr);
} else if (eventPtr->type == UnmapNotify) {
for (i = 0; i < pwPtr->numSlaves; i++) {
- Tk_UnmapWindow(pwPtr->slaves[i]->tkwin);
+ if (!pwPtr->slaves[i]->hide) {
+ Tk_UnmapWindow(pwPtr->slaves[i]->tkwin);
+ }
}
} else if (eventPtr->type == MapNotify) {
for (i = 0; i < pwPtr->numSlaves; i++) {
- Tk_MapWindow(pwPtr->slaves[i]->tkwin);
+ if (!pwPtr->slaves[i]->hide) {
+ Tk_MapWindow(pwPtr->slaves[i]->tkwin);
+ }
}
}
}