changeset 54366:f84db574fec7

(XTread_socket): Fix mouse click on tool bar.
author Kim F. Storm <storm@cua.dk>
date Thu, 11 Mar 2004 22:43:32 +0000
parents 15b0be6b509f
children df306ddd8136
files src/macterm.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/macterm.c	Thu Mar 11 22:43:24 2004 +0000
+++ b/src/macterm.c	Thu Mar 11 22:43:32 2004 +0000
@@ -8262,7 +8262,6 @@
 	            {
 		      Lisp_Object window;
 
-	              inev.kind = MOUSE_CLICK_EVENT;
 		      XSETFRAME (inev.frame_or_window, mwp->mFP);
 		      if (er.what == mouseDown)
 			mouse_tracking_in_progress
@@ -8285,6 +8284,8 @@
 						   );
 			  break;
 			}
+		      else
+			inev.kind = MOUSE_CLICK_EVENT;
 		    }
 
 #if USE_CARBON_EVENTS