i3
|
#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. More... | |
bool | event_is_ignored (const int sequence, const int response_type) |
Checks if the given sequence is ignored and returns true if so. More... | |
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. More... | |
void | property_handlers_init (void) |
Sets the appropriate atoms for the property handlers after the atoms were received from X11. More... | |
Variables | |
int | randr_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_map_request(), handle_unmap_notify_event(), tree_close(), 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 51 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(), and xcb_check_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 1066 of file handlers.c.
References handle_button_press(), handle_client_message(), handle_configure_request(), handle_destroy_notify_event(), handle_enter_notify(), handle_expose_event(), handle_focus_in(), handle_key_press(), handle_map_request(), handle_mapping_notify(), handle_motion_notify(), handle_screen_change(), handle_unmap_notify_event(), last_timestamp, property_notify(), and randr_base.
Referenced by drag_pointer(), main(), and xcb_check_cb().
void property_handlers_init | ( | void | ) |
Sets the appropriate atoms for the property handlers after the atoms were received from X11.
Definition at line 1021 of file handlers.c.
References property_handler_t::atom, conn_screen, sndisplay, startup_monitor_event(), XCB_ATOM_WM_HINTS, XCB_ATOM_WM_NAME, XCB_ATOM_WM_NORMAL_HINTS, and XCB_ATOM_WM_TRANSIENT_FOR.
Referenced by main().
int randr_base |
Definition at line 22 of file handlers.c.
Referenced by handle_event(), and main().