From: Po Lu Date: Thu, 2 Jun 2022 05:44:46 +0000 (+0000) Subject: Fix flicker during mouse DND on Haiku as well X-Git-Tag: emacs-29.0.90~1910^2~292 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ce513544327de17e6c485cb6aa886cc9f08c82b3;p=emacs.git 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. --- 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