include/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.
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 ()
 Sets the appropriate atoms for the property handlers after the atoms were received from X11.

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 46 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 (  ) 

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

Definition at line 962 of file handlers.c.

References property_handler_t::atom.

Referenced by main().


Variable Documentation

Definition at line 17 of file handlers.c.

Referenced by handle_event(), and main().


Generated on 7 Feb 2013 for i3 by  doxygen 1.6.1