diff options
| author | Richard M. Stallman | 1994-05-01 07:33:39 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-05-01 07:33:39 +0000 |
| commit | 3f9929bf5cc71a27e2817f8abb51d171f9b0ddae (patch) | |
| tree | 0ba28b3a18febcbd4c4cc3f408794e451c40ebae /src | |
| parent | cf770692be6cfe1e650b45f2bf82cab893923567 (diff) | |
| download | emacs-3f9929bf5cc71a27e2817f8abb51d171f9b0ddae.tar.gz emacs-3f9929bf5cc71a27e2817f8abb51d171f9b0ddae.zip | |
(Ftrack_mouse): Call prepare_menu_bars at the start.
(read_char): Don't call prepare_menu_bars if doing mouse tracking.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 1532141c45f..4e26c8558b6 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -1453,7 +1453,11 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu) | |||
| 1453 | goto reread_first; | 1453 | goto reread_first; |
| 1454 | } | 1454 | } |
| 1455 | 1455 | ||
| 1456 | if (commandflag >= 0 && !input_pending && !detect_input_pending ()) | 1456 | /* Don't bother updating menu bars while doing mouse tracking. |
| 1457 | We get events very rapidly then, and the menu bar won't be changing. | ||
| 1458 | We do update the menu bar once on entry to Ftrack_mouse. */ | ||
| 1459 | if (!do_mouse_tracking && | ||
| 1460 | commandflag >= 0 && !input_pending && !detect_input_pending ()) | ||
| 1457 | prepare_menu_bars (); | 1461 | prepare_menu_bars (); |
| 1458 | 1462 | ||
| 1459 | /* Save outer setjmp data, in case called recursively. */ | 1463 | /* Save outer setjmp data, in case called recursively. */ |
| @@ -1796,6 +1800,9 @@ Normally, mouse motion is ignored.") | |||
| 1796 | XSET (val, Lisp_Int, do_mouse_tracking); | 1800 | XSET (val, Lisp_Int, do_mouse_tracking); |
| 1797 | record_unwind_protect (tracking_off, val); | 1801 | record_unwind_protect (tracking_off, val); |
| 1798 | 1802 | ||
| 1803 | if (!input_pending && !detect_input_pending ()) | ||
| 1804 | prepare_menu_bars (); | ||
| 1805 | |||
| 1799 | do_mouse_tracking = 1; | 1806 | do_mouse_tracking = 1; |
| 1800 | 1807 | ||
| 1801 | val = Fprogn (args); | 1808 | val = Fprogn (args); |