]> git.eshelyaron.com Git - emacs.git/commitdiff
(XTread_socket): Fix mouse click on tool bar.
authorKim F. Storm <storm@cua.dk>
Thu, 11 Mar 2004 22:43:32 +0000 (22:43 +0000)
committerKim F. Storm <storm@cua.dk>
Thu, 11 Mar 2004 22:43:32 +0000 (22:43 +0000)
src/macterm.c

index 4ff8972dacb4174acdcc06e494f0060159c924cc..6a0f1aa1b0fac11d4604f4126cbb31f9e49f0c95 100644 (file)
@@ -8262,7 +8262,6 @@ XTread_socket (int sd, int expected, struct input_event *hold_quit)
                    {
                      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 @@ XTread_socket (int sd, int expected, struct input_event *hold_quit)
                                                   );
                          break;
                        }
+                     else
+                       inev.kind = MOUSE_CLICK_EVENT;
                    }
 
 #if USE_CARBON_EVENTS