# HG changeset patch # User YAMAMOTO Mitsuharu # Date 1186652191 0 # Node ID 8400bd6255effd4a3c14398760dbf771e3f19e93 # Parent 90ab94f4bab0ac8e7b301cb194fc0dc6280d55dd (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround for window repositioning. diff -r 90ab94f4bab0 -r 8400bd6255ef src/macterm.c --- 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 }