1000))))
;; FIXME: The test for running in batch mode is here solely
;; for the sake of xt-mouse-tests where the only frame is
- ;; the initial frame.
+ ;; the initial frame. The same goes for the computation of
+ ;; x and y.
(frame-and-xy (unless noninteractive (tty-frame-at x y)))
(frame (nth 0 frame-and-xy))
- (x (nth 1 frame-and-xy))
- (y (nth 2 frame-and-xy))
+ (x (or (nth 1 frame-and-xy) x))
+ (y (or (nth 2 frame-and-xy) y))
(w (window-at x y frame))
(ltrb (window-edges w))
(left (nth 0 ltrb))