diff src/xterm.c @ 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 8ad448b29c1c
children 7b933936a676
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 */
 	      }