changeset 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 90ab94f4bab0
children b61c59d1341c
files src/macterm.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
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
 	    }