[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/posframe c6026ba123 1/2: only redraw when reusing the e
From: |
ELPA Syncer |
Subject: |
[elpa] externals/posframe c6026ba123 1/2: only redraw when reusing the existing posframe |
Date: |
Sat, 15 Oct 2022 03:57:54 -0400 (EDT) |
branch: externals/posframe
commit c6026ba1232e737504c90f9bdf5c1429ffec0961
Author: Ta Quang Trung <taquangtrungvn@gmail.com>
Commit: Ta Quang Trung <taquangtrungvn@gmail.com>
only redraw when reusing the existing posframe
---
posframe.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/posframe.el b/posframe.el
index 6863efff70..c3043e38f6 100644
--- a/posframe.el
+++ b/posframe.el
@@ -207,6 +207,7 @@ ACCEPT-FOCUS."
(unless (or posframe--frame posframe--last-args)
(setq-local posframe--frame
(posframe--find-existing-posframe buffer args))
+ (set-frame-parameter posframe--frame 'reuse-existing-posframe t)
(setq-local posframe--last-args args))
;; Create child-frame
@@ -876,7 +877,8 @@ This need PARENT-FRAME-WIDTH and PARENT-FRAME-HEIGHT"
(unless (frame-visible-p posframe)
(make-frame-visible posframe)
;; Fix issue: https://github.com/tumashu/ivy-posframe/pull/30
- (redraw-frame posframe)))
+ (when (frame-parameter posframe 'reuse-existing-posframe)
+ (redraw-frame posframe))))
(defun posframe--run-timeout-timer (posframe secs)
"Hide POSFRAME after a delay of SECS seconds."
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/posframe c6026ba123 1/2: only redraw when reusing the existing posframe,
ELPA Syncer <=