Mercurial > emacs
changeset 82345:328a50c8203c
[TARGET_API_MAC_CARBON] (mac_handle_window_event):
Don't use invisible frame as parent window for repositioning.
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
---|---|
date | Fri, 10 Aug 2007 10:12:43 +0000 |
parents | 9688bf3fd555 |
children | 5aed737f6143 |
files | src/macterm.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/macterm.c Fri Aug 10 06:53:43 2007 +0000 +++ b/src/macterm.c Fri Aug 10 10:12:43 2007 +0000 @@ -10704,7 +10704,7 @@ { 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 @@ && 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;