From ce513544327de17e6c485cb6aa886cc9f08c82b3 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Thu, 2 Jun 2022 05:44:46 +0000 Subject: [PATCH] Fix flicker during mouse DND on Haiku as well * src/haikuterm.c (haiku_read_socket): Don't clear tooltips on crossing if track-mouse is drag-source and the display is grabbed. --- src/haikuterm.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/haikuterm.c b/src/haikuterm.c index 7f0bc1a8cf1..d3a02ff6e52 100644 --- a/src/haikuterm.c +++ b/src/haikuterm.c @@ -3289,7 +3289,9 @@ haiku_read_socket (struct terminal *terminal, struct input_event *hold_quit) tooltip frame. FIXME: for some reason we don't get leave notification events for this. */ - if (any_help_event_p) + if (any_help_event_p + && !(EQ (track_mouse, Qdrag_source) + && gui_mouse_grabbed (x_display_list))) do_help = -1; break; } @@ -3336,7 +3338,9 @@ haiku_read_socket (struct terminal *terminal, struct input_event *hold_quit) haiku_new_focus_frame (x_display_list->focused_frame); - if (any_help_event_p) + if (any_help_event_p + && !(EQ (track_mouse, Qdrag_source) + && gui_mouse_grabbed (x_display_list))) do_help = -1; } else -- 2.39.2