i3
Functions | Variables
handlers.h File Reference
#include <xcb/randr.h>
Include dependency graph for handlers.h:
This graph shows which files directly or indirectly include this file:

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
 

Function Documentation

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 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(), and xcb_check_cb().

void handle_event ( int  type,
xcb_generic_event_t *  event 
)
void property_handlers_init ( void  )

Sets the appropriate atoms for the property handlers after the atoms were received from X11.

Definition at line 1073 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().

Here is the call graph for this function:

Variable Documentation

int randr_base

Definition at line 23 of file handlers.c.

Referenced by handle_event(), and main().