summaryrefslogtreecommitdiff
path: root/oldXMenu
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-03-02 11:12:09 +0800
committerPo Lu <luangruo@yahoo.com>2022-03-02 11:12:09 +0800
commitae00f07d88ced80ef8433594eb376858bb197782 (patch)
treec011fdb976f6d98d7342cc86daa80fe6b1530e3f /oldXMenu
parent84695d439ac77aa8ae871ae1f741929dc9d2761a (diff)
downloademacs-ae00f07d88ced80ef8433594eb376858bb197782.tar.gz
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.c6
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(
* 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);
}