i3
Macros | Functions | Variables
i3.h File Reference
#include <sys/time.h>
#include <sys/resource.h>
#include <xcb/xcb_keysyms.h>
#include <xcb/xkb.h>
#include <X11/XKBlib.h>
#include <libsn/sn-launcher.h>
#include "queue.h"
#include "data.h"
#include "xcb.h"
Include dependency graph for i3.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SN_API_NOT_YET_FROZEN   1
 

Functions

 TAILQ_HEAD (bindings_head, Binding)*bindings
 
 TAILQ_HEAD (autostarts_head, Autostart) autostarts
 
 TAILQ_HEAD (autostarts_always_head, Autostart) autostarts_always
 
 TAILQ_HEAD (ws_assignments_head, Workspace_Assignment) ws_assignments
 
 TAILQ_HEAD (assignments_head, Assignment) assignments
 
 SLIST_HEAD (stack_wins_head, Stack_Window) stack_wins
 

Variables

const char * i3_version
 Git commit identifier, from version.c. More...
 
struct rlimit original_rlimit_core
 The original value of RLIMIT_CORE when i3 was started. More...
 
bool debug_build
 Whether this version of i3 is a debug build or a release build. More...
 
int listen_fds
 The number of file descriptors passed via socket activation. More...
 
int conn_screen
 
xcb_window_t ewmh_window
 The EWMH support window that is used to indicate that an EWMH-compliant window manager is present. More...
 
xcb_timestamp_t last_timestamp
 The last timestamp we got from X11 (timestamps are included in some events and are used for some things, like determining a unique ID in startup notification). More...
 
SnDisplay * sndisplay
 
xcb_key_symbols_t * keysyms
 
char ** start_argv
 
Display * xlibdpy
 
Display * xkbdpy
 
int xkb_current_group
 
uint8_t root_depth
 
xcb_visualid_t visual_id
 
xcb_colormap_t colormap
 
bool xcursor_supported
 
bool xkb_supported
 
xcb_window_t root
 
struct ev_loop * main_loop
 
bool only_check_config
 

Macro Definition Documentation

#define SN_API_NOT_YET_FROZEN   1

Definition at line 20 of file i3.h.

Function Documentation

SLIST_HEAD ( stack_wins_head  ,
Stack_Window   
)
TAILQ_HEAD ( bindings_head  ,
Binding   
)
TAILQ_HEAD ( autostarts_head  ,
Autostart   
)
TAILQ_HEAD ( autostarts_always_head  ,
Autostart   
)
TAILQ_HEAD ( ws_assignments_head  ,
Workspace_Assignment   
)
TAILQ_HEAD ( assignments_head  ,
Assignment   
)

Variable Documentation

xcb_colormap_t colormap

Definition at line 63 of file main.c.

Referenced by main().

int conn_screen

Definition at line 45 of file main.c.

Referenced by display_running_version(), main(), property_handlers_init(), and start_application().

bool debug_build

Whether this version of i3 is a debug build or a release build.

xcb_window_t ewmh_window

The EWMH support window that is used to indicate that an EWMH-compliant window manager is present.

This window is created when i3 starts and kept alive until i3 exits. We also use this window as the focused window if no other window is available to be focused on the active workspace in order to prevent keyboard focus issues (see #1378).

Definition at line 14 of file ewmh.c.

Referenced by ewmh_setup_hints(), and x_push_changes().

const char* i3_version

Git commit identifier, from version.c.

Definition at line 11 of file version.c.

Referenced by IPC_HANDLER(), main(), and parse_file().

xcb_key_symbols_t* keysyms

Definition at line 67 of file main.c.

Referenced by handle_event(), handle_mapping_notify(), main(), and sig_handle_key_press().

xcb_timestamp_t last_timestamp

The last timestamp we got from X11 (timestamps are included in some events and are used for some things, like determining a unique ID in startup notification).

Definition at line 53 of file main.c.

Referenced by handle_button_press(), handle_client_message(), handle_enter_notify(), handle_event(), handle_key_press(), handle_motion_notify(), start_application(), and x_push_changes().

int listen_fds

The number of file descriptors passed via socket activation.

Definition at line 33 of file main.c.

Referenced by main(), and start_application().

struct ev_loop* main_loop
bool only_check_config

Referenced by main().

struct rlimit original_rlimit_core

The original value of RLIMIT_CORE when i3 was started.

We need to restore this before starting any other process, since we set RLIMIT_CORE to RLIM_INFINITY for i3 debugging versions.

Definition at line 30 of file main.c.

Referenced by main(), and start_application().

xcb_window_t root
uint8_t root_depth
SnDisplay* sndisplay

Definition at line 48 of file main.c.

Referenced by handle_client_message(), main(), property_handlers_init(), and start_application().

char** start_argv

Definition at line 41 of file main.c.

Referenced by backtrace(), exec_i3_utility(), i3_restart(), and main().

xcb_visualid_t visual_id
bool xcursor_supported
int xkb_current_group

Definition at line 24 of file handlers.c.

Referenced by grab_keycode_for_binding(), and handle_event().

bool xkb_supported

Definition at line 90 of file main.c.

Referenced by load_keymap(), and main().

Display * xkbdpy
Display* xlibdpy