diff options
| author | Po Lu | 2022-02-27 19:33:16 +0800 |
|---|---|---|
| committer | Po Lu | 2022-02-27 19:33:16 +0800 |
| commit | 704a40ad75fd01d7efafbb9db7b8d5ff403e44eb (patch) | |
| tree | a11e5a1714147384812a05b2a273defa5e93a20b | |
| parent | e2d96ffa6a920684e67f013b5e5eae8c2379bc84 (diff) | |
| download | emacs-704a40ad75fd01d7efafbb9db7b8d5ff403e44eb.tar.gz emacs-704a40ad75fd01d7efafbb9db7b8d5ff403e44eb.zip | |
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.
| -rw-r--r-- | lwlib/lwlib-Xm.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lwlib/lwlib-Xm.c b/lwlib/lwlib-Xm.c index fa60fc89d08..25b1cc6b121 100644 --- a/lwlib/lwlib-Xm.c +++ b/lwlib/lwlib-Xm.c | |||
| @@ -290,7 +290,12 @@ xm_arm_callback (Widget w, XtPointer client_data, XtPointer call_data) | |||
| 290 | if (w != NULL) | 290 | if (w != NULL) |
| 291 | { | 291 | { |
| 292 | instance = lw_get_widget_instance (w); | 292 | instance = lw_get_widget_instance (w); |
| 293 | if (instance && instance->info->highlight_cb) | 293 | |
| 294 | if (instance && instance->info->highlight_cb | ||
| 295 | && (cbs->reason == XmCR_DISARM | ||
| 296 | || (cbs->event | ||
| 297 | && (cbs->event->type == EnterNotify | ||
| 298 | || cbs->event->type == MotionNotify)))) | ||
| 294 | { | 299 | { |
| 295 | call_data = cbs->reason == XmCR_DISARM ? NULL : wv; | 300 | call_data = cbs->reason == XmCR_DISARM ? NULL : wv; |
| 296 | instance->info->highlight_cb (w, instance->info->id, call_data); | 301 | instance->info->highlight_cb (w, instance->info->id, call_data); |