Commit a263cd2d authored by Paul Reilly's avatar Paul Reilly
Browse files

(XTread_socket): Use popup_get_selection() for X11 menubar event handling.

parent 6c32dd68
...@@ -3847,10 +3847,10 @@ XTread_socket (sd, bufp, numchars, waitp, expected) ...@@ -3847,10 +3847,10 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
#ifdef USE_X_TOOLKIT #ifdef USE_X_TOOLKIT
else else
{ {
f = x_any_window_to_frame (event.xbutton.window); /* Assume we have a menubar button press. A bad
if (f && event.type == ButtonPress) assumption should behave benignly. */
construct_menu_click (&emacs_event, popup_get_selection (&event);
&event, f); break;
} }
#endif /* USE_X_TOOLKIT */ #endif /* USE_X_TOOLKIT */
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment