From ad3b3e025329160e992fba7e805c2339f581e19e Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Fri, 10 Aug 2007 10:13:05 +0000 Subject: [PATCH] [TARGET_API_MAC_CARBON] (mac_handle_window_event): Don't use invisible frame as parent window for repositioning. --- src/ChangeLog | 5 +++++ src/macterm.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index d2121578235..77e1a499f9d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2007-08-10 YAMAMOTO Mitsuharu + + * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event): + Don't use invisible frame as parent window for repositioning. + 2007-08-09 YAMAMOTO Mitsuharu * gmalloc.c (posix_memalign): New function. diff --git a/src/macterm.c b/src/macterm.c index d0b3ac8f635..092b7488a5d 100644 --- a/src/macterm.c +++ b/src/macterm.c @@ -10704,7 +10704,7 @@ mac_handle_window_event (next_handler, event, data) { struct frame *sf = SELECTED_FRAME (); - if (!(FRAME_MAC_P (sf))) + if (!(FRAME_MAC_P (sf) && sf->async_visible)) RepositionWindow (wp, NULL, kWindowCenterOnMainScreen); else { @@ -10723,7 +10723,7 @@ mac_handle_window_event (next_handler, event, data) && f->top_pos == sf->top_pos) || (f->left_pos == sf->left_pos + 10 * 2 && f->top_pos == sf->top_pos + 32 * 2)) - MoveWindowStructure (wp, sf->left_pos + 10, sf->top_pos + 32); + MoveWindowStructure (wp, sf->left_pos + 10, sf->top_pos + 32); #endif } result = noErr; -- 2.39.2