]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix persistent help text on disabled menu items
authorPo Lu <luangruo@yahoo.com>
Wed, 2 Mar 2022 03:12:09 +0000 (11:12 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 2 Mar 2022 03:12:09 +0000 (11:12 +0800)
* oldXMenu/Activate.c (XMenuActivate): Always deactivate help
echo upon leaving a menu item.

oldXMenu/Activate.c

index 2d1d50683283cd20f496232d9f573a3b203ae9cf..781c05bd026474ad1dd1eb32a3c96c22046e882c 100644 (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);
            }