]> git.eshelyaron.com Git - emacs.git/commitdiff
(mouse-avoidance-banish-hook): Don't move unless in an
authorKarl Heuer <kwzh@gnu.org>
Mon, 21 Sep 1998 19:42:29 +0000 (19:42 +0000)
committerKarl Heuer <kwzh@gnu.org>
Mon, 21 Sep 1998 19:42:29 +0000 (19:42 +0000)
Emacs frame.

lisp/avoid.el

index 0ce9e479229334343760ba900cd2724bb9e77b52..2c3d7e822b92386e388a5ec6ecaa89dd70d3a4c1 100644 (file)
@@ -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))