From f799bf7ce3c9b6d00df04c2be111f8d37941f9d0 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Mon, 21 Sep 1998 19:42:29 +0000 Subject: [PATCH] (mouse-avoidance-banish-hook): Don't move unless in an Emacs frame. --- lisp/avoid.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/avoid.el b/lisp/avoid.el index 0ce9e479229..2c3d7e822b9 100644 --- a/lisp/avoid.el +++ b/lisp/avoid.el @@ -268,6 +268,7 @@ redefine this function to suit your own tastes." (defun mouse-avoidance-banish-hook () (if (and (not executing-kbd-macro) ; don't check inside macro + (cadr (mouse-position)) ; don't move unless in an Emacs frame ;; Don't do anything if last event was a mouse event. (not (and (consp last-input-event) (symbolp (car last-input-event)) -- 2.39.2