]> git.sur5r.net Git - i3/i3/blob - include/handlers.h
refactor handlers.{c,h}: declare the handlers static, remove unnecessary parameters
[i3/i3] / include / handlers.h
1 /*
2  * vim:ts=8:expandtab
3  *
4  * i3 - an improved dynamic tiling window manager
5  *
6  * © 2009-2010 Michael Stapelberg and contributors
7  *
8  * See file LICENSE for license information.
9  *
10  */
11 #ifndef _HANDLERS_H
12 #define _HANDLERS_H
13
14 #include <xcb/randr.h>
15
16 extern int randr_base;
17
18 void add_ignore_event(const int sequence);
19
20 /**
21  * Takes an xcb_generic_event_t and calls the appropriate handler, based on the
22  * event type.
23  *
24  */
25 void handle_event(int type, xcb_generic_event_t *event);
26
27 /**
28  * Sets the appropriate atoms for the property handlers after the atoms were
29  * received from X11
30  *
31  */
32 void property_handlers_init();
33
34 #if 0
35 /**
36  * Configuration notifies are only handled because we need to set up ignore
37  * for the following enter notify events
38  *
39  */
40 int handle_configure_event(void *prophs, xcb_connection_t *conn, xcb_configure_notify_event_t *event);
41 #endif
42
43 #if 0
44 /**
45  * Handles _NET_WM_WINDOW_TYPE changes
46  *
47  */
48 int handle_window_type(void *data, xcb_connection_t *conn, uint8_t state,
49                        xcb_window_t window, xcb_atom_t atom,
50                        xcb_get_property_reply_t *property);
51 #endif
52
53 #endif