Mercurial > emacs
comparison src/macterm.c @ 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 | c0011ad9af50 |
children | e5a68f18fcb9 |
comparison
equal
deleted
inserted
replaced
82344:9688bf3fd555 | 82345:328a50c8203c |
---|---|
10702 size_hints = FRAME_SIZE_HINTS (f); | 10702 size_hints = FRAME_SIZE_HINTS (f); |
10703 if (!(size_hints->flags & (USPosition | PPosition))) | 10703 if (!(size_hints->flags & (USPosition | PPosition))) |
10704 { | 10704 { |
10705 struct frame *sf = SELECTED_FRAME (); | 10705 struct frame *sf = SELECTED_FRAME (); |
10706 | 10706 |
10707 if (!(FRAME_MAC_P (sf))) | 10707 if (!(FRAME_MAC_P (sf) && sf->async_visible)) |
10708 RepositionWindow (wp, NULL, kWindowCenterOnMainScreen); | 10708 RepositionWindow (wp, NULL, kWindowCenterOnMainScreen); |
10709 else | 10709 else |
10710 { | 10710 { |
10711 RepositionWindow (wp, FRAME_MAC_WINDOW (sf), | 10711 RepositionWindow (wp, FRAME_MAC_WINDOW (sf), |
10712 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1020 | 10712 #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1020 |
10721 window has a Carbon HIToolbar. */ | 10721 window has a Carbon HIToolbar. */ |
10722 if ((f->left_pos == sf->left_pos | 10722 if ((f->left_pos == sf->left_pos |
10723 && f->top_pos == sf->top_pos) | 10723 && f->top_pos == sf->top_pos) |
10724 || (f->left_pos == sf->left_pos + 10 * 2 | 10724 || (f->left_pos == sf->left_pos + 10 * 2 |
10725 && f->top_pos == sf->top_pos + 32 * 2)) | 10725 && f->top_pos == sf->top_pos + 32 * 2)) |
10726 MoveWindowStructure (wp, sf->left_pos + 10, sf->top_pos + 32); | 10726 MoveWindowStructure (wp, sf->left_pos + 10, sf->top_pos + 32); |
10727 #endif | 10727 #endif |
10728 } | 10728 } |
10729 result = noErr; | 10729 result = noErr; |
10730 } | 10730 } |
10731 break; | 10731 break; |