19 const bool key_release = (
event->response_type == XCB_KEY_RELEASE);
23 DLOG(
"%s %d, state raw = 0x%x\n", (key_release ?
"KeyRelease" :
"KeyPress"), event->detail, event->state);
Binding * get_binding_from_xcb_event(xcb_generic_event_t *event)
Returns a pointer to the Binding that matches the given xcb event or NULL if no such binding exists.
CommandResult * run_binding(Binding *bind, Con *con)
Runs the given binding and handles parse errors.
void command_result_free(CommandResult *result)
Frees a CommandResult.
void handle_key_press(xcb_key_press_event_t *event)
There was a key press.
xcb_timestamp_t last_timestamp
The last timestamp we got from X11 (timestamps are included in some events and are used for some thin...
A struct that contains useful information about the result of a command as a whole (e....
Holds a keybinding, consisting of a keycode combined with modifiers and the command which is executed...