diff options
| author | Po Lu | 2022-02-09 02:10:36 +0000 |
|---|---|---|
| committer | Po Lu | 2022-02-09 02:10:36 +0000 |
| commit | 59ff15e3502e44d7ae7ea23cd882fc18a766d989 (patch) | |
| tree | 46f86b059ab5b9054394c5f6468f3de3970477a6 /src | |
| parent | 882cf2d0cdf01e67634a3ddd4744e931f41d473d (diff) | |
| download | emacs-59ff15e3502e44d7ae7ea23cd882fc18a766d989.tar.gz emacs-59ff15e3502e44d7ae7ea23cd882fc18a766d989.zip | |
Make sure the cursor can't move on top of a tooltip on Haiku
* src/haikuterm.c (haiku_read_socket): Work around leave
notification events not being sent on tooltip frames.
Diffstat (limited to 'src')
| -rw-r--r-- | src/haikuterm.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/haikuterm.c b/src/haikuterm.c index 0c7e08585e7..117d8df2e56 100644 --- a/src/haikuterm.c +++ b/src/haikuterm.c | |||
| @@ -2730,9 +2730,21 @@ haiku_read_socket (struct terminal *terminal, struct input_event *hold_quit) | |||
| 2730 | struct frame *f = haiku_window_to_frame (b->window); | 2730 | struct frame *f = haiku_window_to_frame (b->window); |
| 2731 | Mouse_HLInfo *hlinfo = &x_display_list->mouse_highlight; | 2731 | Mouse_HLInfo *hlinfo = &x_display_list->mouse_highlight; |
| 2732 | 2732 | ||
| 2733 | if (!f || FRAME_TOOLTIP_P (f)) | 2733 | if (!f) |
| 2734 | continue; | 2734 | continue; |
| 2735 | 2735 | ||
| 2736 | if (FRAME_TOOLTIP_P (f)) | ||
| 2737 | { | ||
| 2738 | /* Dismiss the tooltip if the mouse moves onto a | ||
| 2739 | tooltip frame. FIXME: for some reason we don't get | ||
| 2740 | leave notification events for this. */ | ||
| 2741 | |||
| 2742 | if (any_help_event_p) | ||
| 2743 | do_help = -1; | ||
| 2744 | |||
| 2745 | break; | ||
| 2746 | } | ||
| 2747 | |||
| 2736 | Lisp_Object frame; | 2748 | Lisp_Object frame; |
| 2737 | XSETFRAME (frame, f); | 2749 | XSETFRAME (frame, f); |
| 2738 | 2750 | ||