diff options
| author | Paul Reilly | 1994-10-02 13:37:59 +0000 |
|---|---|---|
| committer | Paul Reilly | 1994-10-02 13:37:59 +0000 |
| commit | a263cd2dd908102c57283919ab6a22235e544b58 (patch) | |
| tree | 1970c27e578a8fce3219ee1f6f0db45f73c835de /src | |
| parent | 6c32dd68aaf22ac476fd76a5aec8445bf9ec592b (diff) | |
| download | emacs-a263cd2dd908102c57283919ab6a22235e544b58.tar.gz emacs-a263cd2dd908102c57283919ab6a22235e544b58.zip | |
(XTread_socket): Use popup_get_selection() for X11 menubar event handling.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 8 |
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 | } |