Returns a cons cell
(x . y) representing the current
mouse pointer position, relative to the origin of the root window.
If there is a mouse update current event, the position is read directly from that event. Otherwise it is read from the server. If from-server is non-nil then the position is read directly from the server in any case.
Returns the top-level window under the mouse pointer, or
the cursor is in the root window.
Returns a cons cell
(x . y) representing the second
most recent mouse pointer position, relative to the root window.
(mouse-x . mouse-y) representing the mouse
position relative to the root window at the last button-press event.
Use this function to track the displacement of the pointer during a drag.
Returns the window that the mouse was in when the button was pressed.
Move the mouse pointer to position (x, y) relative to the origin of the root window.
Move the mouse pointer to position (x, y) relative to the client window associated with object window.
If x and y are
nil, then they are taken as the
top-left corner of the window’s frame.
nil, this function does
Offset (%) from window edges when warping pointer. A negative number means outside the left window edge.
When false, disable warping the cursor to windows.
If set to an integer value, a pointer must move by this many pixels on
either axis before Sawfish considers it to have moved. If the pointer
has not moved by this amount, Sawfish will ignore
events from X. The variable defaults to 2 pixels. If not an integer,
Sawfish assumes a threshold of 0 pixels.
Sawfish provides functions to move the pointer relative to the current
positions. They’re named “move-cursor”, and defined in
Move the cursor right pixels to the right across the screen, and down pixels down the screen. The cursor stops at the edge of the screen (although in multi-head environments, this may not be at the edge of the display).
There are also more specialized cursor movement functions. All of them are commands, too.
Move the cursor 1 pixel in the indicated direction.
Move the cursor
move-cursor-increment pixels in the indicated
move-cursor-northeast is equal to the northward
move cobmined with the eastward.
Move the cursor to the center of the screen.
move-cursor-DIRECTION functions move this cursor this
many pixels at a time.