diff options
author | fvogel <fvogelnew1@free.fr> | 2016-03-11 08:24:23 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2016-03-11 08:24:23 (GMT) |
commit | d30f4bda39ecf441026e68b7f58eb642c659230f (patch) | |
tree | e331b4f3db713c877151a7bd315b41a33445a886 /generic/tkPanedWindow.c | |
parent | cabdab6542ae2c49f932009ed1643db724857401 (diff) | |
download | tk-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.c | 8 |
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); + } } } } |