Display statusline (without formats)

This commit is contained in:
Axel Wagner
2010-08-04 03:34:18 +02:00
parent 8595d3bb48
commit 27aa9a640e
6 changed files with 142 additions and 15 deletions

View File

@ -3,9 +3,12 @@
#include "util.h"
typedef struct rect_t rect;
typedef int bool;
typedef struct rect_t rect;
struct ev_loop* main_loop;
pid_t child_pid;
char *statusline;
struct rect_t {
int x;
@ -14,6 +17,4 @@ struct rect_t {
int h;
};
struct ev_loop* main_loop;
#endif

View File

@ -16,15 +16,15 @@ void free_outputs();
i3_output* get_output_by_name(char* name);
struct i3_output {
char* name;
bool active;
int ws;
rect rect;
char* name;
bool active;
int ws;
rect rect;
xcb_window_t bar;
xcb_gcontext_t bargc;
xcb_window_t bar;
xcb_gcontext_t bargc;
struct ws_head *workspaces;
struct ws_head *workspaces;
SLIST_ENTRY(i3_output) slist;
};

View File

@ -23,7 +23,7 @@ void clean_xcb();
void get_atoms();
void destroy_windows();
void create_windows();
void draw_buttons();
void draw_bars();
int get_string_width(char *string);
void handle_xcb_event(xcb_generic_event_t *event);