]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix flicker during mouse DND on Haiku as well
authorPo Lu <luangruo@yahoo.com>
Thu, 2 Jun 2022 05:44:46 +0000 (05:44 +0000)
committerPo Lu <luangruo@yahoo.com>
Thu, 2 Jun 2022 05:44:46 +0000 (05:44 +0000)
* 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

index 7f0bc1a8cf1fc2dfa9d685566c631dfe6aa244f1..d3a02ff6e5232f7783d997aa08dee88a9a3e3f3a 100644 (file)
@@ -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