#include <ev.h>
#include <fcntl.h>
#include <limits.h>
#include "all.h"
#include "atoms.xmacro"
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 |
Con * | focused |
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 xmacro | ( | atom | ) | A_ ## atom, |
#define xmacro | ( | name | ) |
#define xmacro | ( | atom | ) | xcb_intern_atom_cookie_t atom ## _cookie = xcb_intern_atom(conn, 0, strlen(#atom), #atom); |
int main | ( | int | argc, | |
char * | argv[] | |||
) |
Definition at line 165 of file main.c.
References add_loglevel(), autostarts, autostarts_always, check_error(), Autostart::command, config, conn, die, DLOG, ELOG, FREE, get_process_filename(), grab_all_keys(), Font::id, init_logging(), ipc_create_socket(), ipc_new_client(), Config::ipc_socket_path, keysyms, load_configuration(), load_font(), LOG, main_loop, manage_existing_windows(), property_handlers_init(), randr_base, randr_init(), root, root_depth, root_screen, scalloc(), set_verbosity(), setup_signal_handler(), sstrdup(), start_application(), start_argv, TAILQ_FOREACH, translate_keysyms(), tree_init(), tree_render(), tree_restore(), x_set_i3_atoms(), xcb_check_cb(), xcb_get_numlock_mask(), xcb_got_event(), xcb_prepare_cb(), XCURSOR_CURSOR_POINTER, xcursor_get_xcb_cursor(), xcursor_load_cursors(), xcursor_set_root_cursor(), xcursor_supported, xinerama_init(), xkb_event_base, xkb_got_event(), xkb_supported, xkbdpy, and xlibdpy.
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().
static void xcb_got_event | ( | EV_P_ struct ev_io * | w, | |
int | revents | |||
) | [static] |
static void xcb_prepare_cb | ( | EV_P_ ev_prepare * | w, | |
int | revents | |||
) | [static] |
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().
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) |
struct autostarts_always_head autostarts_always = TAILQ_HEAD_INITIALIZER(autostarts_always) |
struct bindings_head* bindings |
Definition at line 31 of file main.c.
Referenced by get_binding(), grab_all_keys(), load_configuration(), switch_mode(), translate_keysyms(), and yyparse().
xcb_connection_t* conn |
Definition at line 17 of file main.c.
Referenced by con_toggle_fullscreen(), drag_pointer(), DRAGGING_CB(), ewmh_update_active_window(), ewmh_update_current_desktop(), ewmh_update_workarea(), fake_absolute_configure_notify(), handle_button_press(), handle_configure_request(), handle_map_request(), handle_mapping_notify(), handle_signal(), handle_unmap_notify_event(), main(), manage_existing_windows(), manage_window(), predict_text_width(), randr_init(), randr_query_outputs(), resize_graphical_handler(), restore_geometry(), route_click(), send_take_focus(), sig_draw_window(), switch_mode(), TAILQ_HEAD(), tree_close(), window_supports_protocol(), x_con_init(), x_con_kill(), x_deco_recurse(), x_draw_decoration(), x_push_changes(), x_push_node(), x_push_node_unmaps(), x_set_i3_atoms(), x_window_kill(), xcb_check_cb(), xcb_prepare_cb(), xinerama_init(), xkb_got_event(), and yyparse().
Definition at line 8 of file tree.c.
Referenced by attach_to_workspace(), check_crossing_screen_boundary(), con_attach(), con_descend_tiling_focused(), con_detach(), con_focus(), con_next_focused(), dump_node(), ewmh_update_current_desktop(), floating_disable(), floating_enable(), handle_hints(), init_ws_for_output(), insert_con_into(), IPC_HANDLER(), manage_window(), render_con(), tree_append_json(), tree_move(), workspace_get(), workspace_next(), workspace_prev(), workspace_show(), x_draw_decoration(), x_push_changes(), x_push_node(), and yyparse().
xcb_key_symbols_t* keysyms |
Definition at line 25 of file main.c.
Referenced by handle_mapping_notify(), main(), sig_handle_key_press(), translate_keysyms(), xcb_get_numlock_mask(), and xkb_got_event().
struct ev_loop* main_loop |
Definition at line 23 of file main.c.
Referenced by main(), and start_configerror_nagbar().
xcb_window_t root |
Definition at line 20 of file main.c.
Referenced by create_window(), drag_pointer(), ewmh_update_active_window(), ewmh_update_current_desktop(), ewmh_update_workarea(), main(), manage_window(), open_input_window(), randr_init(), randr_query_outputs(), restore_geometry(), tree_close(), ungrab_all_keys(), x_push_changes(), and x_set_i3_atoms().
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 |
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().