mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-21 06:55:39 +00:00
Don't send help-echo on menu button arming not caused by motion events
* lwlib/lwlib-Xm.c (xm_arm_callback): Ignore arming if the arm was not caused by an EnterNotify or MotionNotify event.
This commit is contained in:
parent
e2d96ffa6a
commit
704a40ad75
@ -290,7 +290,12 @@ xm_arm_callback (Widget w, XtPointer client_data, XtPointer call_data)
|
||||
if (w != NULL)
|
||||
{
|
||||
instance = lw_get_widget_instance (w);
|
||||
if (instance && instance->info->highlight_cb)
|
||||
|
||||
if (instance && instance->info->highlight_cb
|
||||
&& (cbs->reason == XmCR_DISARM
|
||||
|| (cbs->event
|
||||
&& (cbs->event->type == EnterNotify
|
||||
|| cbs->event->type == MotionNotify))))
|
||||
{
|
||||
call_data = cbs->reason == XmCR_DISARM ? NULL : wv;
|
||||
instance->info->highlight_cb (w, instance->info->id, call_data);
|
||||
|
Loading…
Reference in New Issue
Block a user