i3
|
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <fcntl.h>
#include "all.h"
Go to the source code of this file.
Macros | |
#define | I3__FILE__ "key_press.c" |
Functions | |
static int | json_boolean (void *ctx, int boolval) |
static int | json_map_key (void *ctx, const unsigned char *stringval, unsigned int stringlen) |
static int | json_start_map (void *ctx) |
static int | json_end_map (void *ctx) |
void | handle_key_press (xcb_key_press_event_t *event) |
There was a key press. More... | |
Variables | |
static int | current_nesting_level |
static bool | parse_error_key |
static bool | command_failed |
pid_t | command_error_nagbar_pid = -1 |
static yajl_callbacks | command_error_callbacks |
#define I3__FILE__ "key_press.c" |
Definition at line 2 of file key_press.c.
void handle_key_press | ( | xcb_key_press_event_t * | event) |
There was a key press.
We compare this key code with our bindings table and pass the bound action to parse_command().
Definition at line 73 of file key_press.c.
References BIND_MODE_SWITCH, Binding::command, command_error_nagbar_pid, command_failed, command_output, config, current_nesting_level, DLOG, ELOG, errorfilename, Config::font, get_binding(), CommandResult::json_gen, last_timestamp, CommandResult::needs_tree_render, parse_command(), parse_error_key, Font::pattern, sasprintf(), sstrdup(), start_nagbar(), state, tree_render(), xcb_numlock_mask, and xkb_current_group.
Referenced by handle_event().
|
static |
Definition at line 24 of file key_press.c.
References command_failed, current_nesting_level, DLOG, and parse_error_key.
|
static |
Definition at line 48 of file key_press.c.
References current_nesting_level.
|
static |
Definition at line 36 of file key_press.c.
References parse_error_key.
|
static |
Definition at line 43 of file key_press.c.
References current_nesting_level.
Referenced by tree_append_json().
|
static |
Definition at line 53 of file key_press.c.
pid_t command_error_nagbar_pid = -1 |
Definition at line 22 of file key_press.c.
Referenced by cmd_reload(), handle_key_press(), and i3_restart().
|
static |
Definition at line 20 of file key_press.c.
Referenced by handle_key_press(), and json_boolean().
|
static |
Definition at line 18 of file key_press.c.
Referenced by handle_key_press(), json_boolean(), json_end_map(), and json_start_map().
|
static |
Definition at line 19 of file key_press.c.
Referenced by handle_key_press(), json_boolean(), and json_map_key().