[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/posframe 0e87bc7 3/3: * posframe.el (posframe--mouse-ba
From: |
ELPA Syncer |
Subject: |
[elpa] externals/posframe 0e87bc7 3/3: * posframe.el (posframe--mouse-banish): let x and y >=0. |
Date: |
Tue, 26 Oct 2021 23:57:23 -0400 (EDT) |
branch: externals/posframe
commit 0e87bc7a16d00cf0bdf1fb4dbe7393e4cf086581
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>
* posframe.el (posframe--mouse-banish): let x and y >=0.
---
posframe.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/posframe.el b/posframe.el
index cbee24b..beeb575 100644
--- a/posframe.el
+++ b/posframe.el
@@ -742,7 +742,7 @@
https://github.com/tumashu/posframe/issues/4#issuecomment-357514918"
(< m-x (+ x w))
(> m-y y)
(< m-y (+ y h)))
- (set-mouse-pixel-position parent-frame (- x 5) (- y 10)))))
+ (set-mouse-pixel-position parent-frame (max 0 (- x 5)) (max 0 (- y
10))))))
(defun posframe--redirect-posframe-focus ()
"Redirect focus from the posframe to the parent frame.