src/main.c File Reference

#include <ev.h>
#include <fcntl.h>
#include <limits.h>
#include "all.h"
#include "atoms.xmacro"
Include dependency graph for main.c:

Go to the source code of this file.

Defines

#define xmacro(atom)   xcb_intern_atom_cookie_t atom ## _cookie = xcb_intern_atom(conn, 0, strlen(#atom), #atom);
#define xmacro(name)
#define xmacro(atom)   A_ ## atom,

Functions

static void xcb_got_event (EV_P_ struct ev_io *w, int revents)
static void xcb_prepare_cb (EV_P_ ev_prepare *w, int revents)
static void xcb_check_cb (EV_P_ ev_check *w, int revents)
static void xkb_got_event (EV_P_ struct ev_io *w, int revents)
int main (int argc, char *argv[])

Variables

static int xkb_event_base
int xkb_current_group
Confocused
char ** start_argv
xcb_connection_t * conn
xcb_screen_t * root_screen
xcb_window_t root
uint8_t root_depth
struct ev_loop * main_loop
xcb_key_symbols_t * keysyms
Display * xlibdpy
Display * xkbdpy
struct bindings_head * bindings
struct autostarts_head autostarts = TAILQ_HEAD_INITIALIZER(autostarts)
struct autostarts_always_head autostarts_always = TAILQ_HEAD_INITIALIZER(autostarts_always)
struct assignments_head assignments = TAILQ_HEAD_INITIALIZER(assignments)
struct ws_assignments_head ws_assignments = TAILQ_HEAD_INITIALIZER(ws_assignments)
bool xcursor_supported = true
bool xkb_supported = true

Define Documentation

#define xmacro ( atom   )     A_ ## atom,
#define xmacro ( name   ) 
Value:
do { \
            xcb_intern_atom_reply_t *reply = xcb_intern_atom_reply(conn, name ## _cookie, NULL); \
            if (!reply) { \
                ELOG("Could not get atom " #name "\n"); \
                exit(-1); \
            } \
            A_ ## name = reply->atom; \
            free(reply); \
        } while (0);
#define xmacro ( atom   )     xcb_intern_atom_cookie_t atom ## _cookie = xcb_intern_atom(conn, 0, strlen(#atom), #atom);

Function Documentation

int main ( int  argc,
char *  argv[] 
)
static void xcb_check_cb ( EV_P_ ev_check *  w,
int  revents 
) [static]

Definition at line 72 of file main.c.

References conn, DLOG, ELOG, event_is_ignored(), and handle_event().

Referenced by main().

Here is the call graph for this function:

static void xcb_got_event ( EV_P_ struct ev_io *  w,
int  revents 
) [static]

Definition at line 55 of file main.c.

Referenced by main().

static void xcb_prepare_cb ( EV_P_ ev_prepare *  w,
int  revents 
) [static]

Definition at line 63 of file main.c.

References conn.

Referenced by main().

static void xkb_got_event ( EV_P_ struct ev_io *  w,
int  revents 
) [static]

Definition at line 103 of file main.c.

References conn, DLOG, ELOG, grab_all_keys(), keysyms, translate_keysyms(), ungrab_all_keys(), xcb_get_numlock_mask(), xkb_current_group, xkb_event_base, and xkbdpy.

Referenced by main().

Here is the call graph for this function:


Variable Documentation

struct assignments_head assignments = TAILQ_HEAD_INITIALIZER(assignments)

Definition at line 40 of file main.c.

Referenced by assignment_for(), load_configuration(), run_assignments(), and yyparse().

struct autostarts_head autostarts = TAILQ_HEAD_INITIALIZER(autostarts)

Definition at line 34 of file main.c.

Referenced by main(), and yyparse().

struct autostarts_always_head autostarts_always = TAILQ_HEAD_INITIALIZER(autostarts_always)

Definition at line 37 of file main.c.

Referenced by main(), and yyparse().

struct bindings_head* bindings
xcb_connection_t* conn
xcb_key_symbols_t* keysyms
struct ev_loop* main_loop

Definition at line 23 of file main.c.

Referenced by main(), and start_configerror_nagbar().

xcb_window_t root
uint8_t root_depth

Definition at line 21 of file main.c.

Referenced by handle_signal(), main(), and x_push_node().

xcb_screen_t* root_screen

Definition at line 19 of file main.c.

Referenced by disable_randr(), and main().

char** start_argv

Definition at line 15 of file main.c.

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

struct ws_assignments_head ws_assignments = TAILQ_HEAD_INITIALIZER(ws_assignments)

Definition at line 44 of file main.c.

Referenced by init_ws_for_output(), workspace_get(), and yyparse().

bool xcursor_supported = true

Definition at line 47 of file main.c.

Referenced by create_window(), load_cursor(), and main().

Definition at line 11 of file main.c.

Referenced by handle_key_press(), and xkb_got_event().

int xkb_event_base [static]

Definition at line 9 of file main.c.

Referenced by main(), and xkb_got_event().

bool xkb_supported = true

Definition at line 48 of file main.c.

Referenced by main().

Display * xkbdpy

Definition at line 28 of file main.c.

Referenced by main(), and xkb_got_event().

Display* xlibdpy

Definition at line 28 of file main.c.

Referenced by load_cursor(), main(), and xcursor_set_root_cursor().


Generated on 7 Feb 2013 for i3 by  doxygen 1.6.1