public static extern Status XUngrabKey(IntPtr display, KeyCode keycode, KeyButtonMask modifiers, Window grab_window);
public static extern Status XGrabButton(IntPtr display, Button button, KeyButtonMask modifiers, Window grab_window, bool owner_events, EventMask event_mask, GrabMode pointer_mode, GrabMode keyboard_mode, Window confine_to, FontCursor cursor);
public static extern Status XGrabKey(IntPtr display, KeyCode keycode, KeyButtonMask modifiers, Window grab_window, bool owner_events, GrabMode pointer_mode, GrabMode keyboard_mode);
public static extern Status XUngrabButton(IntPtr display, Button button, KeyButtonMask modifiers, Window grab_window);