emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/posframe 1c4c818: * posframe.el (posframe--mouse-banish


From: ELPA Syncer
Subject: [elpa] externals/posframe 1c4c818: * posframe.el (posframe--mouse-banish): Improve mouse position test.
Date: Wed, 27 Oct 2021 00:57:22 -0400 (EDT)

branch: externals/posframe
commit 1c4c8180c2e41cff5a8b800cdfba8f1bd6d1d950
Author: Feng Shu <tumashu@163.com>
Commit: Feng Shu <tumashu@163.com>

    * 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

[Prev in Thread] Current Thread [Next in Thread]