[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 7b259b2eb1: Implement last change on Haiku as well
From: |
Po Lu |
Subject: |
master 7b259b2eb1: Implement last change on Haiku as well |
Date: |
Mon, 18 Jul 2022 00:50:06 -0400 (EDT) |
branch: master
commit 7b259b2eb17d0b912f7a674a5f6189abab4914d8
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Implement last change on Haiku as well
* 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 | 3 +--
src/haikuselect.c | 5 +++++
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/lisp/term/haiku-win.el b/lisp/term/haiku-win.el
index b36e3037ee..abcef77318 100644
--- a/lisp/term/haiku-win.el
+++ b/lisp/term/haiku-win.el
@@ -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)
diff --git a/src/haikuselect.c b/src/haikuselect.c
index dc0a7edf43..daad98da2b 100644
--- a/src/haikuselect.c
+++ b/src/haikuselect.c
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 7b259b2eb1: Implement last change on Haiku as well,
Po Lu <=