x11rb::protocol::xproto

Function 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 as window (see the same_screen field in the reply).

§Errors

  • Window - The specified window does not exist.