summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2012-09-14 21:25:28 (GMT)
committerdgp <dgp@users.sourceforge.net>2012-09-14 21:25:28 (GMT)
commit99dd7f2e320e83cd50acfe8209e4bfe04e073190 (patch)
tree63d892f159b73d205289b2b0654b77abdf092dfa
parente829dc68c26b7b313b94f777def7bb49c471422b (diff)
downloadtk-99dd7f2e320e83cd50acfe8209e4bfe04e073190.zip
tk-99dd7f2e320e83cd50acfe8209e4bfe04e073190.tar.gz
tk-99dd7f2e320e83cd50acfe8209e4bfe04e073190.tar.bz2
3567779 Fumbling attempt to make winWm.test stop segfaulting and start passingbug_3567779
when tested on Snow Leopard with --enable-aqua.
-rw-r--r--macosx/tkMacOSXWm.c4
-rw-r--r--tests/winWm.test2
2 files changed, 4 insertions, 2 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c
index b651b3c..ae577d5 100644
--- a/macosx/tkMacOSXWm.c
+++ b/macosx/tkMacOSXWm.c
@@ -726,6 +726,8 @@ TkWmDeadWindow(
if (wmPtr == NULL) {
return;
}
+ Tk_DeleteEventHandler((Tk_Window) winPtr, StructureNotifyMask,
+ TopLevelEventProc, winPtr);
if (wmPtr->hints.flags & IconPixmapHint) {
Tk_FreeBitmap(winPtr->display, wmPtr->hints.icon_pixmap);
}
@@ -1650,7 +1652,7 @@ WmForgetCmd(
TkFocusJoin(winPtr);
Tk_UnmapWindow(frameWin);
- TkWmDeadWindow((TkWindow *) macWin);
+ TkWmDeadWindow(winPtr);
RemapWindows(winPtr, macWin);
winPtr->flags &= ~(TK_TOP_HIERARCHY|TK_TOP_LEVEL|TK_HAS_WRAPPER|TK_WIN_MANAGED);
diff --git a/tests/winWm.test b/tests/winWm.test
index a4d2669..1a8c8eb 100644
--- a/tests/winWm.test
+++ b/tests/winWm.test
@@ -541,7 +541,7 @@ test winWm-9.2 "check wm forget for unmapped parent (#3205464,#2967911)" -setup
} -body {
pack .t.f.x
pack .t.f
- set aid [after 1000 {set ::winwm92 timeout}]
+ set aid [after 2000 {set ::winwm92 timeout}]
after 100 {
wm manage .t.f
wm iconify .t