Stephen J. Turnbull wrote:
Mike Kupfer writes:
> Well, there's the window immediately below the one whose
modeline is
> being dragged.
Well, in practice that's not clear, actually, which is why I asked.
In fact, IIRC in XEmacs there's only *one* big X window, which
*directly* handles events for all of the echo area, the toolbars, the
modelines, the gutters, and the Emacs windows in the frame.
But whatever the X window hierarchy looks like, the number returned by
event-window-y-pixel is relative to the Emacs window. I added
event-window-x-pixel and event-window-y-pixel calls to my event tester.
If put 2 Emacs windows in the frame, start the event tester, and then
move the mouse from the top window, across the modeline, and into the
bottom window, the Y value resets to 0 as the mouse passes from the
modeline into the bottom window.
If that is correct, then the pixel distance will have a consistent
reference point throughout the drag, which is why I suggested this
calculation.
I do want a consistent reference point, but I'm starting to think I'm
going to have to add some functions to event.c or window.c to get it.
mike
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta