emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master ae00f07d88: Fix persistent help text on disabled menu items


From: Po Lu
Subject: master ae00f07d88: Fix persistent help text on disabled menu items
Date: Tue, 1 Mar 2022 22:12:48 -0500 (EST)

branch: master
commit ae00f07d88ced80ef8433594eb376858bb197782
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    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(-)

diff --git a/oldXMenu/Activate.c b/oldXMenu/Activate.c
index 2d1d506832..781c05bd02 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);
            }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]