Fix persistent help text on disabled menu items

* oldXMenu/Activate.c (XMenuActivate): Always deactivate help
echo upon leaving a menu item.
This commit is contained in:
Po Lu 2022-03-02 11:12:09 +08:00
parent 84695d439a
commit ae00f07d88

View file

@ -456,10 +456,10 @@ XMenuActivate(
* If the current selection was activated then
* deactivate it.
*/
/* Emacs specific, HELP_STRING cannot be validly NULL
* in the real XMenu library. */
help_callback (NULL, cur_p->serial, cur_s->serial);
if (cur_s->activated) {
/* Emacs specific, HELP_STRING cannot be validly NULL
* in the real XMenu library. */
help_callback (NULL, cur_p->serial, cur_s->serial);
cur_s->activated = False;
_XMRefreshSelection(display, menu, cur_s);
}