branch: externals/posframe
commit 0e87bc7a16d00cf0bdf1fb4dbe7393e4cf086581
Author: Feng Shu <[email protected]>
Commit: Feng Shu <[email protected]>

    * 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.

Reply via email to