diff options
| author | Po Lu | 2022-03-02 11:12:09 +0800 |
|---|---|---|
| committer | Po Lu | 2022-03-02 11:12:09 +0800 |
| commit | ae00f07d88ced80ef8433594eb376858bb197782 (patch) | |
| tree | c011fdb976f6d98d7342cc86daa80fe6b1530e3f /oldXMenu | |
| parent | 84695d439ac77aa8ae871ae1f741929dc9d2761a (diff) | |
| download | emacs-ae00f07d88ced80ef8433594eb376858bb197782.tar.gz emacs-ae00f07d88ced80ef8433594eb376858bb197782.zip | |
Fix persistent help text on disabled menu items
* oldXMenu/Activate.c (XMenuActivate): Always deactivate help
echo upon leaving a menu item.
Diffstat (limited to 'oldXMenu')
| -rw-r--r-- | oldXMenu/Activate.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/oldXMenu/Activate.c b/oldXMenu/Activate.c index 2d1d5068328..781c05bd026 100644 --- a/oldXMenu/Activate.c +++ b/oldXMenu/Activate.c | |||
| @@ -456,10 +456,10 @@ XMenuActivate( | |||
| 456 | * If the current selection was activated then | 456 | * If the current selection was activated then |
| 457 | * deactivate it. | 457 | * deactivate it. |
| 458 | */ | 458 | */ |
| 459 | /* Emacs specific, HELP_STRING cannot be validly NULL | ||
| 460 | * in the real XMenu library. */ | ||
| 461 | help_callback (NULL, cur_p->serial, cur_s->serial); | ||
| 459 | if (cur_s->activated) { | 462 | if (cur_s->activated) { |
| 460 | /* Emacs specific, HELP_STRING cannot be validly NULL | ||
| 461 | * in the real XMenu library. */ | ||
| 462 | help_callback (NULL, cur_p->serial, cur_s->serial); | ||
| 463 | cur_s->activated = False; | 463 | cur_s->activated = False; |
| 464 | _XMRefreshSelection(display, menu, cur_s); | 464 | _XMRefreshSelection(display, menu, cur_s); |
| 465 | } | 465 | } |