i3
|
#include <config.h>
#include <xcb/randr.h>
Go to the source code of this file.
Functions | |
void | add_ignore_event (const int sequence, const int response_type) |
Adds the given sequence to the list of events which are ignored. | |
bool | event_is_ignored (const int sequence, const int response_type) |
Checks if the given sequence is ignored and returns true if so. | |
void | handle_event (int type, xcb_generic_event_t *event) |
Takes an xcb_generic_event_t and calls the appropriate handler, based on the event type. | |
void | property_handlers_init (void) |
Sets the appropriate atoms for the property handlers after the atoms were received from X11. | |
Variables | |
int | randr_base |
int | xkb_base |
int | shape_base |
void add_ignore_event | ( | const int | sequence, |
const int | response_type ) |
Adds the given sequence to the list of events which are ignored.
If this ignore should only affect a specific response_type, pass response_type, otherwise, pass -1.
Every ignored sequence number gets garbage collected after 5 seconds.
Referenced by handle_event(), handle_map_request(), handle_unmap_notify_event(), tree_close_internal(), and xcb_set_window_rect().
bool event_is_ignored | ( | const int | sequence, |
const int | response_type ) |
Checks if the given sequence is ignored and returns true if so.
Definition at line 52 of file handlers.c.
References Ignore_Event::added, Ignore_Event::response_type, Ignore_Event::sequence, SLIST_END, SLIST_FIRST, SLIST_FOREACH, SLIST_NEXT, and SLIST_REMOVE.
Referenced by handle_enter_notify(), handle_event(), and xcb_prepare_cb().
void handle_event | ( | int | type, |
xcb_generic_event_t * | event ) |
Takes an xcb_generic_event_t and calls the appropriate handler, based on the event type.
Definition at line 1431 of file handlers.c.
References add_ignore_event(), con_by_window_id(), conn, DLOG, event_is_ignored(), grab_all_keys(), handle_button_press(), handle_client_message(), handle_configure_notify(), handle_configure_request(), handle_destroy_notify_event(), handle_enter_notify(), handle_expose_event(), handle_focus_in(), handle_focus_out(), handle_key_press(), handle_map_request(), handle_mapping_notify(), handle_motion_notify(), handle_screen_change(), handle_selection_clear(), handle_unmap_notify_event(), keysyms, last_timestamp, load_keymap(), LOG, property_notify(), randr_base, shape_base, shape_supported, state, translate_keysyms(), ungrab_all_keys(), x_set_shape(), xkb_base, and xkb_current_group.
Referenced by drain_drag_events(), main(), and xcb_prepare_cb().
void property_handlers_init | ( | void | ) |
Sets the appropriate atoms for the property handlers after the atoms were received from X11.
Definition at line 1366 of file handlers.c.
References property_handler_t::atom, conn_screen, property_handlers, sndisplay, and startup_monitor_event().
Referenced by main().
|
extern |
Definition at line 20 of file handlers.c.
Referenced by handle_event(), and main().
|
extern |
Definition at line 23 of file handlers.c.
Referenced by handle_event(), and main().
|
extern |
Definition at line 21 of file handlers.c.
Referenced by handle_event(), and main().