changeset 9232:84c4f61445c9

(XTread_socket): Use popup_get_selection() for X11 menubar event handling.
author Paul Reilly <pmr@pajato.com>
date Sun, 02 Oct 1994 13:37:59 +0000
parents eeb35369e536
children 746cc6b0d28f
files src/xterm.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Sun Oct 02 13:29:03 1994 +0000
+++ b/src/xterm.c	Sun Oct 02 13:37:59 1994 +0000
@@ -3847,10 +3847,10 @@
 #ifdef USE_X_TOOLKIT
 		else
 		  {
- 		    f = x_any_window_to_frame (event.xbutton.window);
-		    if (f && event.type == ButtonPress)
-		      construct_menu_click (&emacs_event,
-					    &event, f);
+		    /* Assume we have a menubar button press. A bad
+                       assumption should behave benignly. */
+		    popup_get_selection (&event);
+		    break;
 		  }
 #endif /* USE_X_TOOLKIT */
 	      }