From ae00f07d88ced80ef8433594eb376858bb197782 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Wed, 2 Mar 2022 11:12:09 +0800 Subject: Fix persistent help text on disabled menu items * oldXMenu/Activate.c (XMenuActivate): Always deactivate help echo upon leaving a menu item. --- oldXMenu/Activate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'oldXMenu') 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); } -- cgit v1.2.3