i3
handlers.h File Reference
#include <config.h>
#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 (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
 

Function Documentation

◆ add_ignore_event()

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

◆ event_is_ignored()

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

◆ handle_event()

◆ property_handlers_init()

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

Here is the call graph for this function:

Variable Documentation

◆ randr_base

int randr_base
extern

Definition at line 20 of file handlers.c.

Referenced by handle_event(), and main().

◆ shape_base

int shape_base
extern

Definition at line 23 of file handlers.c.

Referenced by handle_event(), and main().

◆ xkb_base

int xkb_base
extern

Definition at line 21 of file handlers.c.

Referenced by handle_event(), and main().