changeset 52977:8af8c70252c1

macterm.c (XTread_socket): Handle menubar selection and grow window only for mouseDown events.
author Andrew Choi <akochoi@shaw.ca>
date Sat, 01 Nov 2003 19:58:03 +0000
parents d6492eca15c8
children 1a5c50faf357
files src/ChangeLog src/macterm.c
diffstat 2 files changed, 19 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sat Nov 01 17:57:14 2003 +0000
+++ b/src/ChangeLog	Sat Nov 01 19:58:03 2003 +0000
@@ -1,3 +1,8 @@
+2003-11-01  Andrew Choi  <akochoi@shaw.ca>
+
+	* macterm.c (XTread_socket): Handle menubar selection and grow
+	window only for mouseDown events.
+	
 2003-10-31  Jan Dj,Ad(Brv  <jan.h.d@swipnet.se>
 
 	* xterm.c (x_term_init): For GTK part, increase x_initialized
--- a/src/macterm.c	Sat Nov 01 17:57:14 2003 +0000
+++ b/src/macterm.c	Sat Nov 01 19:58:03 2003 +0000
@@ -7773,14 +7773,15 @@
 	  switch (part_code)
 	    {
 	    case inMenuBar:
-              {
-                struct frame *f = ((mac_output *)
-				   GetWRefCon (FrontWindow ()))->mFP;
-                saved_menu_event_location = er.where;
-                bufp->kind = MENU_BAR_ACTIVATE_EVENT;
-                XSETFRAME (bufp->frame_or_window, f);
-                count++;
-              }
+	      if (er.what == mouseDown)  
+		{
+		  struct frame *f = ((mac_output *)
+				     GetWRefCon (FrontWindow ()))->mFP;
+		  saved_menu_event_location = er.where;
+		  bufp->kind = MENU_BAR_ACTIVATE_EVENT;
+		  XSETFRAME (bufp->frame_or_window, f);
+		  count++;
+		}
 	      break;
 
 	    case inContent:
@@ -7899,8 +7900,11 @@
 
 	    /* window resize handling added --ben */
 	    case inGrow:
-	      do_grow_window(window_ptr, &er);
-	      break;
+              if (er.what == mouseDown)  
+		{
+		  do_grow_window(window_ptr, &er);
+		  break;
+		}
 
 	    /* window zoom handling added --ben */
 	    case inZoomIn: