]> git.eshelyaron.com Git - emacs.git/commitdiff
Implement last change on Haiku as well
authorPo Lu <luangruo@yahoo.com>
Mon, 18 Jul 2022 04:49:46 +0000 (04:49 +0000)
committerPo Lu <luangruo@yahoo.com>
Mon, 18 Jul 2022 04:49:46 +0000 (04:49 +0000)
* lisp/term/haiku-win.el (haiku-dnd-drag-handler): Stop
redisplaying here.
* src/haikuselect.c (haiku_note_drag_motion): Use
redisplay_preserve_echo_area.

lisp/term/haiku-win.el
src/haikuselect.c

index b36e3037ee80f301aba75d1269fcdd13af212abf..abcef773180b735abcb3b9cb0b8a5c53e678f19d 100644 (file)
@@ -409,8 +409,7 @@ take effect on menu items until the menu bar is updated again."
     (when (car mouse-position)
       (dnd-handle-movement (posn-at-x-y (cadr mouse-position)
                                         (cddr mouse-position)
-                                        (car mouse-position)))
-      (redisplay))))
+                                        (car mouse-position))))))
 
 (setq haiku-drag-track-function #'haiku-dnd-drag-handler)
 
index dc0a7edf4305390a9399677e98cac384feba2294..daad98da2b416b3ac8d1b39d532c83c563f07ac5 100644 (file)
@@ -1030,6 +1030,11 @@ haiku_note_drag_motion (void)
 
   internal_catch_all (haiku_note_drag_motion_1, NULL,
                      haiku_note_drag_motion_2);
+
+  /* Redisplay this way to preserve the echo area.  Otherwise, the
+     contents will abruptly disappear when the mouse moves over a
+     frame.  */
+  redisplay_preserve_echo_area (34);
 }
 
 void