Ensure format of dumped bindings for i3bar is compatible with i3 bindings.

fixes #1695
This commit is contained in:
Ingo Bürk
2015-05-23 16:48:29 -04:00
parent f0ac9629b9
commit 9eb255d5fa
6 changed files with 96 additions and 57 deletions

View File

@ -22,16 +22,16 @@ typedef enum { M_DOCK = 0,
M_HIDE = 1,
M_INVISIBLE = 2 } bar_display_mode_t;
typedef struct mouse_command_t {
int button;
typedef struct binding_t {
int input_code;
char *command;
TAILQ_ENTRY(mouse_command_t) commands;
} mouse_command_t;
TAILQ_ENTRY(binding_t) bindings;
} binding_t;
typedef struct config_t {
int modifier;
TAILQ_HEAD(mouse_commands_head, mouse_command_t) mouse_commands;
TAILQ_HEAD(bindings_head, binding_t) bindings;
position_t position;
int verbose;
struct xcb_color_strings_t colors;