Function x11rb::protocol::xproto::query_pointer
source · pub fn query_pointer<Conn>(
conn: &Conn,
window: Window,
) -> Result<Cookie<'_, Conn, QueryPointerReply>, ConnectionError>where
Conn: RequestConnection + ?Sized,
Expand description
get pointer coordinates.
Gets the root window the pointer is logically on and the pointer coordinates relative to the root window’s origin.
§Fields
window
- A window to check if the pointer is on the same screen aswindow
(see thesame_screen
field in the reply).
§Errors
Window
- The specifiedwindow
does not exist.