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 Michael Stapelberg and contributors (see also: LICENSE)
6  *
7  * handlers.c: Small handlers for various events (keypresses, focus changes,
8  * …).
9  *
10  */
11 #pragma once
12 
13 #include <config.h>
14 
15 #include <xcb/randr.h>
16 
17 extern int randr_base;
18 extern int xkb_base;
19 extern int shape_base;
20 
29 void add_ignore_event(const int sequence, const int response_type);
30 
35 bool event_is_ignored(const int sequence, const int response_type);
36 
42 void handle_event(int type, xcb_generic_event_t *event);
43 
49 void property_handlers_init(void);
50 
51 #if 0
52 
57 int handle_configure_event(void *prophs, xcb_connection_t *conn, xcb_configure_notify_event_t *event);
58 #endif
59 
60 #if 0
61 
65 int handle_window_type(void *data, xcb_connection_t *conn, uint8_t state,
66  xcb_window_t window, xcb_atom_t atom,
67  xcb_get_property_reply_t *property);
68 #endif
void add_ignore_event(const int sequence, const int response_type)
Adds the given sequence to the list of events which are ignored.
xcb_connection_t * conn
XCB connection and root screen.
Definition: main.c:44
void property_handlers_init(void)
Sets the appropriate atoms for the property handlers after the atoms were received from X11...
Definition: handlers.c:1307
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:52
int xkb_base
Definition: handlers.c:21
static cmdp_state state
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:1355
static bool handle_window_type(void *data, xcb_connection_t *conn, uint8_t state, xcb_window_t window, xcb_atom_t atom, xcb_get_property_reply_t *reply)
Definition: handlers.c:953
int shape_base
Definition: handlers.c:23
int randr_base
Definition: handlers.c:20