summaryrefslogtreecommitdiff
path: root/lisp/avoid.el
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1998-09-21 19:42:29 +0000
committerKarl Heuer <kwzh@gnu.org>1998-09-21 19:42:29 +0000
commitf799bf7ce3c9b6d00df04c2be111f8d37941f9d0 (patch)
tree679746cc1bd35144c72afb7915666653d61f1b98 /lisp/avoid.el
parentcf4a60a3195679829bdc1bde95598420f780bc77 (diff)
downloademacs-f799bf7ce3c9b6d00df04c2be111f8d37941f9d0.tar.gz
(mouse-avoidance-banish-hook): Don't move unless in an
Emacs frame.
Diffstat (limited to 'lisp/avoid.el')
-rw-r--r--lisp/avoid.el1
1 files changed, 1 insertions, 0 deletions
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))