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 9bbdcd592aa..c57618696eb 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -1439,7 +1439,8 @@ The functions are run with one arg, the frame to be deleted. */)
1439DEFUN ("mouse-position", Fmouse_position, Smouse_position, 0, 0, 0, 1439DEFUN ("mouse-position", Fmouse_position, Smouse_position, 0, 0, 0,
1440 doc: /* Return a list (FRAME X . Y) giving the current mouse frame and position. 1440 doc: /* Return a list (FRAME X . Y) giving the current mouse frame and position.
1441The position is given in character cells, where (0, 0) is the 1441The position is given in character cells, where (0, 0) is the
1442upper-left corner. 1442upper-left corner of the frame, X is the horizontal offset, and Y is
1443the vertical offset.
1443If Emacs is running on a mouseless terminal or hasn't been programmed 1444If Emacs is running on a mouseless terminal or hasn't been programmed
1444to read the mouse position, it returns the selected frame for FRAME 1445to read the mouse position, it returns the selected frame for FRAME
1445and nil for X and Y. 1446and nil for X and Y.
@@ -1487,7 +1488,8 @@ DEFUN ("mouse-pixel-position", Fmouse_pixel_position,
1487 Smouse_pixel_position, 0, 0, 0, 1488 Smouse_pixel_position, 0, 0, 0,
1488 doc: /* Return a list (FRAME X . Y) giving the current mouse frame and position. 1489 doc: /* Return a list (FRAME X . Y) giving the current mouse frame and position.
1489The position is given in pixel units, where (0, 0) is the 1490The position is given in pixel units, where (0, 0) is the
1490upper-left corner. 1491upper-left corner of the frame, X is the horizontal offset, and Y is
1492the vertical offset.
1491If Emacs is running on a mouseless terminal or hasn't been programmed 1493If Emacs is running on a mouseless terminal or hasn't been programmed
1492to read the mouse position, it returns the selected frame for FRAME 1494to read the mouse position, it returns the selected frame for FRAME
1493and nil for X and Y. */) 1495and nil for X and Y. */)
@@ -1520,6 +1522,10 @@ Coordinates are relative to the frame, not a window,
1520so the coordinates of the top left character in the frame 1522so the coordinates of the top left character in the frame
1521may be nonzero due to left-hand scroll bars or the menu bar. 1523may be nonzero due to left-hand scroll bars or the menu bar.
1522 1524
1525The position is given in character cells, where (0, 0) is the
1526upper-left corner of the frame, X is the horizontal offset, and Y is
1527the vertical offset.
1528
1523This function is a no-op for an X frame that is not visible. 1529This function is a no-op for an X frame that is not visible.
1524If you have just created a frame, you must wait for it to become visible 1530If you have just created a frame, you must wait for it to become visible
1525before calling this function on it, like this. 1531before calling this function on it, like this.
@@ -1552,6 +1558,9 @@ before calling this function on it, like this.
1552DEFUN ("set-mouse-pixel-position", Fset_mouse_pixel_position, 1558DEFUN ("set-mouse-pixel-position", Fset_mouse_pixel_position,
1553 Sset_mouse_pixel_position, 3, 3, 0, 1559 Sset_mouse_pixel_position, 3, 3, 0,
1554 doc: /* Move the mouse pointer to pixel position (X,Y) in FRAME. 1560 doc: /* Move the mouse pointer to pixel position (X,Y) in FRAME.
1561The position is given in pixels, where (0, 0) is the upper-left corner
1562of the frame, X is the horizontal offset, and Y is the vertical offset.
1563
1555Note, this is a no-op for an X frame that is not visible. 1564Note, this is a no-op for an X frame that is not visible.
1556If you have just created a frame, you must wait for it to become visible 1565If you have just created a frame, you must wait for it to become visible
1557before calling this function on it, like this. 1566before calling this function on it, like this.