aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 88860538d80..3fdd78de1c8 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -3847,10 +3847,10 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
3847#ifdef USE_X_TOOLKIT 3847#ifdef USE_X_TOOLKIT
3848 else 3848 else
3849 { 3849 {
3850 f = x_any_window_to_frame (event.xbutton.window); 3850 /* Assume we have a menubar button press. A bad
3851 if (f && event.type == ButtonPress) 3851 assumption should behave benignly. */
3852 construct_menu_click (&emacs_event, 3852 popup_get_selection (&event);
3853 &event, f); 3853 break;
3854 } 3854 }
3855#endif /* USE_X_TOOLKIT */ 3855#endif /* USE_X_TOOLKIT */
3856 } 3856 }