]> git.sur5r.net Git - i3/i3/blob - include/i3.h
Merge branch 'release-4.16.1'
[i3/i3] / include / i3.h
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  * i3.h: global variables that are used all over i3.
8  *
9  */
10 #pragma once
11
12 #include <config.h>
13
14 #include <sys/time.h>
15 #include <sys/resource.h>
16
17 #include <xcb/xcb_keysyms.h>
18 #include <xcb/xkb.h>
19
20 #include <X11/XKBlib.h>
21
22 #define SN_API_NOT_YET_FROZEN 1
23 #include <libsn/sn-launcher.h>
24
25 #include "queue.h"
26 #include "data.h"
27 #include "xcb.h"
28
29 /** Git commit identifier, from version.c */
30 extern const char *i3_version;
31
32 /** The original value of RLIMIT_CORE when i3 was started. We need to restore
33  * this before starting any other process, since we set RLIMIT_CORE to
34  * RLIM_INFINITY for i3 debugging versions. */
35 extern struct rlimit original_rlimit_core;
36 /** Whether this version of i3 is a debug build or a release build. */
37 extern bool debug_build;
38 /** The number of file descriptors passed via socket activation. */
39 extern int listen_fds;
40 extern int conn_screen;
41 /**
42  * The EWMH support window that is used to indicate that an EWMH-compliant
43  * window manager is present. This window is created when i3 starts and
44  * kept alive until i3 exits.
45  * We also use this window as the focused window if no other window is
46  * available to be focused on the active workspace in order to prevent
47  * keyboard focus issues (see #1378).
48  */
49 extern xcb_window_t ewmh_window;
50 /** The last timestamp we got from X11 (timestamps are included in some events
51  * and are used for some things, like determining a unique ID in startup
52  * notification). */
53 extern xcb_timestamp_t last_timestamp;
54 extern SnDisplay *sndisplay;
55 extern xcb_key_symbols_t *keysyms;
56 extern char **start_argv;
57 extern Display *xlibdpy, *xkbdpy;
58 extern int xkb_current_group;
59 extern TAILQ_HEAD(bindings_head, Binding) * bindings;
60 extern TAILQ_HEAD(autostarts_head, Autostart) autostarts;
61 extern TAILQ_HEAD(autostarts_always_head, Autostart) autostarts_always;
62 extern TAILQ_HEAD(ws_assignments_head, Workspace_Assignment) ws_assignments;
63 extern TAILQ_HEAD(assignments_head, Assignment) assignments;
64 extern SLIST_HEAD(stack_wins_head, Stack_Window) stack_wins;
65
66 /* Color depth, visual id and colormap to use when creating windows and
67  * pixmaps. Will use 32 bit depth and an appropriate visual, if available,
68  * otherwise the root window’s default (usually 24 bit TrueColor). */
69 extern uint8_t root_depth;
70 extern xcb_visualid_t visual_id;
71 extern xcb_colormap_t colormap;
72
73 extern bool xcursor_supported, xkb_supported;
74 extern xcb_window_t root;
75 extern struct ev_loop *main_loop;
76 extern bool only_check_config;
77 extern bool force_xinerama;