From: Robert Pluim Date: Thu, 27 Feb 2020 17:32:50 +0000 (-0500) Subject: * src/nsterm.m ([EmacsView toolbarClicked:]): Fix last change X-Git-Tag: emacs-28.0.90~7824 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=77f69a90bfe1d605765803debdc30436115f2b72;p=emacs.git * src/nsterm.m ([EmacsView toolbarClicked:]): Fix last change --- diff --git a/src/nsterm.m b/src/nsterm.m index aefbb2721ef..84acb61dcd1 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -8185,6 +8185,7 @@ not_in_argv (NSString *arg) if (!emacs_event) return self; + theEvent = [[self window] currentEvent]; emacs_event->kind = TOOL_BAR_EVENT; /* XSETINT (emacs_event->code, 0); */ emacs_event->arg = AREF (emacsframe->tool_bar_items,