summaryrefslogtreecommitdiffstats
path: root/generic/tkPanedWindow.c
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2016-03-11 08:24:23 (GMT)
committerfvogel <fvogelnew1@free.fr>2016-03-11 08:24:23 (GMT)
commitd30f4bda39ecf441026e68b7f58eb642c659230f (patch)
treee331b4f3db713c877151a7bd315b41a33445a886 /generic/tkPanedWindow.c
parentcabdab6542ae2c49f932009ed1643db724857401 (diff)
downloadtk-d30f4bda39ecf441026e68b7f58eb642c659230f.zip
tk-d30f4bda39ecf441026e68b7f58eb642c659230f.tar.gz
tk-d30f4bda39ecf441026e68b7f58eb642c659230f.tar.bz2
Fixed bug [d95e5d8f16] - Hidden panes in panedwindow incorrectly trigger <Map> events (cherrypicked [42c8d8441c])
Diffstat (limited to 'generic/tkPanedWindow.c')
-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);
+ }
}
}
}