gri3-wm/i3bar/include/mode.h

31 lines
533 B
C
Raw Normal View History

/*
* vim:ts=4:sw=4:expandtab
*
* i3bar - an xcb-based status- and ws-bar for i3
* © 2010 Axel Wagner and contributors (see also: LICENSE)
*
2015-03-23 20:56:49 +01:00
* mode.c: Handle "mode" event and show current binding mode in the bar
*
*/
#pragma once
#include <config.h>
#include <xcb/xproto.h>
#include "common.h"
/* Name of current binding mode and its render width */
struct mode {
i3String *name;
int name_width;
};
typedef struct mode mode;
/*
2015-03-23 20:56:49 +01:00
* Start parsing the received JSON string
*
*/
void parse_mode_json(char *json);