[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 2/2] avoid: ignore mouse when it is hidden
From: |
Stefan Monnier |
Subject: |
Re: [PATCH 2/2] avoid: ignore mouse when it is hidden |
Date: |
Mon, 18 Oct 2010 10:42:28 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> (defun mouse-avoidance-ignore-p ()
> (let ((mp (mouse-position)))
> - (or executing-kbd-macro ; don't check inside macro
> + (or (not (frame-pointer-visible-p)) ; The pointer is hidden
> + executing-kbd-macro ; don't check inside macro
> (null (cadr mp)) ; don't move unless in an Emacs frame
> (not (eq (car mp) (selected-frame)))
> ;; Don't do anything if last event was a mouse event.
Just wondering here: seeing how you've gone through the trouble to write
a patch for the C code, there must be a good reason, but why check (not
(frame-pointer-visible-p)) rather than make-pointer-invisible?
Stefan