Subject: Re: bug#16647: Imprecisions with window-resizing cursors

From: E Sabof <[email-masked]>
Date: Fri, 07 Feb 2014 17:32:23 +0000

martin rudalics <[email-masked]> writes:

> (1) Check whether setting the right-divider frame parameter to 1 suffers
>      from the same problem.

No change.

> (2) Try putting `coordinates-in-window-p' in a loop where you simulate
>      (by incrementing the car of the first argument) the course of the
>      mouse and display the return value via a message.
>
> (3) In window.c DEFVAR_LISP a new variable, in coordinates_in_window set
>      that variable to the value coordinates_in_window is about to return,
>      display the value of that variable in the modeline, and then move
>      the mouse to find out what it reports.
>

(progn
  (scroll-bar-mode -1)
  (require 'cl-lib)
  (run-with-timer 0 0.1
                  (lambda ()
                    (let ((win-list (window-list))
                          (func (apply-partially
                                 'coordinates-in-window-p
                                 (cdr (mouse-position)))))
                      (message "%s" (cl-find-if func win-list))))))

I've tried the snippet above. There where imprecisions, but shouldn't that be expected, given `coordinates-in-window-p' returns characters and not pixels? Should I try something similar with `track-mouse' and pixels?

Evgeni