From f94264798798821b09ddf5ace25078ee319a5cd8 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Thu, 9 Aug 2007 09:36:42 +0000 Subject: (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround for window repositioning. --- src/macterm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/macterm.c') diff --git a/src/macterm.c b/src/macterm.c index d1d9205d5dc..7d6934b806b 100644 --- a/src/macterm.c +++ b/src/macterm.c @@ -10719,7 +10719,10 @@ mac_handle_window_event (next_handler, event, data) /* 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 } -- cgit v1.2.1