diff options
| author | Richard M. Stallman | 1995-10-11 17:24:37 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-10-11 17:24:37 +0000 |
| commit | 2ee250ec15c0be2830942923c5c97a5d9264b4e7 (patch) | |
| tree | 6a591a1f3e51592e7913f3adae8ca7593cd26d53 /src | |
| parent | 7f4bda7c96b4dda235d8425e219be78ae17236d5 (diff) | |
| download | emacs-2ee250ec15c0be2830942923c5c97a5d9264b4e7.tar.gz emacs-2ee250ec15c0be2830942923c5c97a5d9264b4e7.zip | |
(make_lispy_event) [!USE_X_TOOLKIT]: Dragging
the mouse into the menu-bar and releasing it there did
not create a drag-mouse event.
(set-input-mode) [MSDOS]: Do not call reset_sys_modes and init_sys_modes.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 019b0d2597b..10e6a7842ad 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -3191,17 +3191,20 @@ make_lispy_event (event) | |||
| 3191 | (In the toolkit version, the toolkit handles the menu bar | 3191 | (In the toolkit version, the toolkit handles the menu bar |
| 3192 | and Emacs doesn't know about it until after the user | 3192 | and Emacs doesn't know about it until after the user |
| 3193 | makes a selection.) */ | 3193 | makes a selection.) */ |
| 3194 | if (row >= 0 && row < FRAME_MENU_BAR_LINES (f)) | 3194 | if (row >= 0 && row < FRAME_MENU_BAR_LINES (f) |
| 3195 | && (event->modifiers & down_modifier)) | ||
| 3195 | { | 3196 | { |
| 3196 | Lisp_Object items, item; | 3197 | Lisp_Object items, item; |
| 3197 | int hpos; | 3198 | int hpos; |
| 3198 | int i; | 3199 | int i; |
| 3199 | 3200 | ||
| 3201 | #if 0 | ||
| 3200 | /* Activate the menu bar on the down event. If the | 3202 | /* Activate the menu bar on the down event. If the |
| 3201 | up event comes in before the menu code can deal with it, | 3203 | up event comes in before the menu code can deal with it, |
| 3202 | just ignore it. */ | 3204 | just ignore it. */ |
| 3203 | if (! (event->modifiers & down_modifier)) | 3205 | if (! (event->modifiers & down_modifier)) |
| 3204 | return Qnil; | 3206 | return Qnil; |
| 3207 | #endif | ||
| 3205 | 3208 | ||
| 3206 | item = Qnil; | 3209 | item = Qnil; |
| 3207 | items = FRAME_MENU_BAR_ITEMS (f); | 3210 | items = FRAME_MENU_BAR_ITEMS (f); |
| @@ -6870,7 +6873,11 @@ See also `current-input-mode'.") | |||
| 6870 | stop_polling (); | 6873 | stop_polling (); |
| 6871 | #endif | 6874 | #endif |
| 6872 | 6875 | ||
| 6876 | #ifndef MSDOS | ||
| 6877 | /* this causes startup screen to be restored and messes with the mouse */ | ||
| 6873 | reset_sys_modes (); | 6878 | reset_sys_modes (); |
| 6879 | #endif | ||
| 6880 | |||
| 6874 | #ifdef SIGIO | 6881 | #ifdef SIGIO |
| 6875 | /* Note SIGIO has been undef'd if FIONREAD is missing. */ | 6882 | /* Note SIGIO has been undef'd if FIONREAD is missing. */ |
| 6876 | if (read_socket_hook) | 6883 | if (read_socket_hook) |
| @@ -6905,7 +6912,9 @@ See also `current-input-mode'.") | |||
| 6905 | /* Don't let this value be out of range. */ | 6912 | /* Don't let this value be out of range. */ |
| 6906 | quit_char = XINT (quit) & (meta_key ? 0377 : 0177); | 6913 | quit_char = XINT (quit) & (meta_key ? 0377 : 0177); |
| 6907 | 6914 | ||
| 6915 | #ifndef MSDOS | ||
| 6908 | init_sys_modes (); | 6916 | init_sys_modes (); |
| 6917 | #endif | ||
| 6909 | 6918 | ||
| 6910 | #ifdef POLL_FOR_INPUT | 6919 | #ifdef POLL_FOR_INPUT |
| 6911 | poll_suppress_count = 1; | 6920 | poll_suppress_count = 1; |