aboutsummaryrefslogtreecommitdiffstats
path: root/src/frame.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/frame.c b/src/frame.c
index fd10c3e273c..021e9bf604f 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -1679,7 +1679,8 @@ The functions are run with one arg, the frame to be deleted. */)
1679DEFUN ("mouse-position", Fmouse_position, Smouse_position, 0, 0, 0, 1679DEFUN ("mouse-position", Fmouse_position, Smouse_position, 0, 0, 0,
1680 doc: /* Return a list (FRAME X . Y) giving the current mouse frame and position. 1680 doc: /* Return a list (FRAME X . Y) giving the current mouse frame and position.
1681The position is given in character cells, where (0, 0) is the 1681The position is given in character cells, where (0, 0) is the
1682upper-left corner. 1682upper-left corner of the frame, X is the horizontal offset, and Y is
1683the vertical offset.
1683If Emacs is running on a mouseless terminal or hasn't been programmed 1684If Emacs is running on a mouseless terminal or hasn't been programmed
1684to read the mouse position, it returns the selected frame for FRAME 1685to read the mouse position, it returns the selected frame for FRAME
1685and nil for X and Y. 1686and nil for X and Y.
@@ -1727,7 +1728,8 @@ DEFUN ("mouse-pixel-position", Fmouse_pixel_position,
1727 Smouse_pixel_position, 0, 0, 0, 1728 Smouse_pixel_position, 0, 0, 0,
1728 doc: /* Return a list (FRAME X . Y) giving the current mouse frame and position. 1729 doc: /* Return a list (FRAME X . Y) giving the current mouse frame and position.
1729The position is given in pixel units, where (0, 0) is the 1730The position is given in pixel units, where (0, 0) is the
1730upper-left corner. 1731upper-left corner of the frame, X is the horizontal offset, and Y is
1732the vertical offset.
1731If Emacs is running on a mouseless terminal or hasn't been programmed 1733If Emacs is running on a mouseless terminal or hasn't been programmed
1732to read the mouse position, it returns the selected frame for FRAME 1734to read the mouse position, it returns the selected frame for FRAME
1733and nil for X and Y. */) 1735and nil for X and Y. */)
@@ -1760,6 +1762,10 @@ Coordinates are relative to the frame, not a window,
1760so the coordinates of the top left character in the frame 1762so the coordinates of the top left character in the frame
1761may be nonzero due to left-hand scroll bars or the menu bar. 1763may be nonzero due to left-hand scroll bars or the menu bar.
1762 1764
1765The position is given in character cells, where (0, 0) is the
1766upper-left corner of the frame, X is the horizontal offset, and Y is
1767the vertical offset.
1768
1763This function is a no-op for an X frame that is not visible. 1769This function is a no-op for an X frame that is not visible.
1764If you have just created a frame, you must wait for it to become visible 1770If you have just created a frame, you must wait for it to become visible
1765before calling this function on it, like this. 1771before calling this function on it, like this.
@@ -1792,6 +1798,9 @@ before calling this function on it, like this.
1792DEFUN ("set-mouse-pixel-position", Fset_mouse_pixel_position, 1798DEFUN ("set-mouse-pixel-position", Fset_mouse_pixel_position,
1793 Sset_mouse_pixel_position, 3, 3, 0, 1799 Sset_mouse_pixel_position, 3, 3, 0,
1794 doc: /* Move the mouse pointer to pixel position (X,Y) in FRAME. 1800 doc: /* Move the mouse pointer to pixel position (X,Y) in FRAME.
1801The position is given in pixels, where (0, 0) is the upper-left corner
1802of the frame, X is the horizontal offset, and Y is the vertical offset.
1803
1795Note, this is a no-op for an X frame that is not visible. 1804Note, this is a no-op for an X frame that is not visible.
1796If you have just created a frame, you must wait for it to become visible 1805If you have just created a frame, you must wait for it to become visible
1797before calling this function on it, like this. 1806before calling this function on it, like this.