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

    * posframe.el (posframe--mouse-banish): Improve mouse position test.
---
 posframe.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/posframe.el b/posframe.el
index beeb575..60f1f0c 100644
--- a/posframe.el
+++ b/posframe.el
@@ -738,10 +738,10 @@ 
https://github.com/tumashu/posframe/issues/4#issuecomment-357514918";
          (y (plist-get info :posframe-y))
          (w (plist-get info :posframe-width))
          (h (plist-get info :posframe-height)))
-    (when (and (> m-x x)
-               (< m-x (+ x w))
-               (> m-y y)
-               (< m-y (+ y h)))
+    (when (and (>= m-x x)
+               (<= m-x (+ x w))
+               (>= m-y y)
+               (<= m-y (+ y h)))
       (set-mouse-pixel-position parent-frame (max 0 (- x 5)) (max 0 (- y 
10))))))
 
 (defun posframe--redirect-posframe-focus ()

Reply via email to