Mercurial > emacs
diff src/macterm.c @ 82338:8400bd6255ef
(mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
for window repositioning.
| author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
|---|---|
| date | Thu, 09 Aug 2007 09:36:31 +0000 |
| parents | 0ad15cda2bce |
| children | c0011ad9af50 |
line wrap: on
line diff
--- a/src/macterm.c Thu Aug 09 03:07:26 2007 +0000 +++ b/src/macterm.c Thu Aug 09 09:36:31 2007 +0000 @@ -10719,7 +10719,10 @@ /* This is a workaround. RepositionWindow fails to put a window at the cascading position when its parent window has a Carbon HIToolbar. */ - if (f->top_pos == sf->top_pos && f->left_pos == sf->left_pos) + if ((f->left_pos == sf->left_pos + && f->top_pos == sf->top_pos) + || (f->left_pos == sf->left_pos + 10 * 2 + && f->top_pos == sf->top_pos + 32 * 2)) MoveWindowStructure (wp, f->left_pos + 10, f->top_pos + 32); #endif }
