i3
Macros | Functions | Variables
key_press.c File Reference
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <fcntl.h>
#include "all.h"
Include dependency graph for key_press.c:

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
 

Macro Definition Documentation

#define I3__FILE__   "key_press.c"

Definition at line 2 of file key_press.c.

Function Documentation

void handle_key_press ( xcb_key_press_event_t *  event)
static int json_boolean ( void *  ctx,
int  boolval 
)
static

Definition at line 24 of file key_press.c.

References command_failed, current_nesting_level, DLOG, and parse_error_key.

static int json_end_map ( void *  ctx)
static

Definition at line 48 of file key_press.c.

References current_nesting_level.

static int json_map_key ( void *  ctx,
const unsigned char *  stringval,
unsigned int  stringlen 
)
static

Definition at line 36 of file key_press.c.

References parse_error_key.

static int json_start_map ( void *  ctx)
static

Definition at line 43 of file key_press.c.

References current_nesting_level.

Referenced by tree_append_json().

Variable Documentation

yajl_callbacks command_error_callbacks
static
Initial value:
= {
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL
}

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().

bool command_failed
static

Definition at line 20 of file key_press.c.

Referenced by handle_key_press(), and json_boolean().

int current_nesting_level
static

Definition at line 18 of file key_press.c.

Referenced by handle_key_press(), json_boolean(), json_end_map(), and json_start_map().

bool parse_error_key
static

Definition at line 19 of file key_press.c.

Referenced by handle_key_press(), json_boolean(), and json_map_key().