Function x11rb::protocol::xproto::ungrab_key

source ·
pub fn ungrab_key<Conn, A>(
    conn: &Conn,
    key: A,
    grab_window: Window,
    modifiers: ModMask,
) -> Result<VoidCookie<'_, Conn>, ConnectionError>
where Conn: RequestConnection + ?Sized, A: Into<Keycode>,
Expand description

release a key combination.

Releases the key combination on grab_window if you grabbed it using xcb_grab_key before.

§Fields

  • key - The keycode of the specified key combination.

Using the special value XCB_GRAB_ANY means releasing all possible key codes.

  • grab_window - The window on which the grabbed key combination will be released.
  • modifiers - The modifiers of the specified key combination.

Using the special value XCB_MOD_MASK_ANY means releasing the key combination with every possible modifier combination.

§Errors

  • Window - The specified grab_window does not exist.
  • Value - TODO: reasons?

§See

  • GrabKey: request
  • xev: program