i3
handlers.h
Go to the documentation of this file.
1 /*
2  * vim:ts=4:sw=4:expandtab
3  *
4  * i3 - an improved dynamic tiling window manager
5  * © 2009-2011 Michael Stapelberg and contributors (see also: LICENSE)
6  *
7  * handlers.c: Small handlers for various events (keypresses, focus changes,
8  * …).
9  *
10  */
11 #ifndef I3_HANDLERS_H
12 #define I3_HANDLERS_H
13 
14 #include <xcb/randr.h>
15 
16 extern int randr_base;
17 
26 void add_ignore_event(const int sequence, const int response_type);
27 
32 bool event_is_ignored(const int sequence, const int response_type);
33 
39 void handle_event(int type, xcb_generic_event_t *event);
40 
46 void property_handlers_init(void);
47 
48 #if 0
49 
54 int handle_configure_event(void *prophs, xcb_connection_t *conn, xcb_configure_notify_event_t *event);
55 #endif
56 
57 #if 0
58 
62 int handle_window_type(void *data, xcb_connection_t *conn, uint8_t state,
63  xcb_window_t window, xcb_atom_t atom,
64  xcb_get_property_reply_t *property);
65 #endif
66 
67 #endif
xcb_connection_t * conn
Definition: main.c:42
static cmdp_state state
bool event_is_ignored(const int sequence, const int response_type)
Checks if the given sequence is ignored and returns true if so.
Definition: handlers.c:51
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: handlers.c:1066
void property_handlers_init(void)
Sets the appropriate atoms for the property handlers after the atoms were received from X11...
Definition: handlers.c:1021
void add_ignore_event(const int sequence, const int response_type)
Adds the given sequence to the list of events which are ignored.
int randr_base
Definition: handlers.c:22