Added Unicode-Support
This commit is contained in:
@@ -22,5 +22,6 @@ struct rect_t {
|
||||
#include "util.h"
|
||||
#include "workspaces.h"
|
||||
#include "xcb.h"
|
||||
#include "ucs2_to_utf8.h"
|
||||
|
||||
#endif
|
||||
|
@@ -11,6 +11,7 @@ SLIST_HEAD(outputs_head, i3_output);
|
||||
struct outputs_head *outputs;
|
||||
|
||||
void parse_outputs_json(char* json);
|
||||
void init_outputs();
|
||||
void free_outputs();
|
||||
i3_output* get_output_by_name(char* name);
|
||||
|
||||
|
1
i3bar/include/ucs2_to_utf8.h
Normal file
1
i3bar/include/ucs2_to_utf8.h
Normal file
@@ -0,0 +1 @@
|
||||
char *convert_utf8_to_ucs2(char *input, int *real_strlen);
|
@@ -1,6 +1,8 @@
|
||||
#ifndef WORKSPACES_H_
|
||||
#define WORKSPACES_H_
|
||||
|
||||
#include <xcb/xproto.h>
|
||||
|
||||
#include "common.h"
|
||||
|
||||
typedef struct i3_ws i3_ws;
|
||||
@@ -13,6 +15,8 @@ void free_workspaces();
|
||||
struct i3_ws {
|
||||
int num;
|
||||
char *name;
|
||||
xcb_char2b_t *ucs2_name;
|
||||
int name_glyphs;
|
||||
int name_width;
|
||||
bool visible;
|
||||
bool focused;
|
||||
|
@@ -7,8 +7,8 @@ void init_xcb();
|
||||
void clean_xcb();
|
||||
void get_atoms();
|
||||
void destroy_windows();
|
||||
void create_windows();
|
||||
void reconfig_windows();
|
||||
void draw_bars();
|
||||
int get_string_width(char *string);
|
||||
int get_string_width(xcb_char2b_t *string, int glyph_len);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user