gri3-wm/i3bar/include/workspaces.h

31 lines
581 B
C
Raw Normal View History

2010-07-22 01:15:18 +02:00
#ifndef WORKSPACES_H_
#define WORKSPACES_H_
2010-08-06 03:32:05 +02:00
#include <xcb/xproto.h>
2010-07-22 01:15:18 +02:00
#include "common.h"
2010-07-30 03:11:54 +02:00
typedef struct i3_ws i3_ws;
2010-07-22 01:15:18 +02:00
2010-07-30 03:11:54 +02:00
TAILQ_HEAD(ws_head, i3_ws);
2010-07-22 01:15:18 +02:00
2010-07-23 04:43:43 +02:00
void parse_workspaces_json();
2010-07-22 01:15:18 +02:00
void free_workspaces();
2010-07-30 03:11:54 +02:00
struct i3_ws {
2010-08-03 21:20:11 +02:00
int num;
char *name;
2010-08-06 03:32:05 +02:00
xcb_char2b_t *ucs2_name;
int name_glyphs;
2010-08-03 21:20:11 +02:00
int name_width;
bool visible;
bool focused;
bool urgent;
rect rect;
struct i3_output *output;
2010-07-22 01:15:18 +02:00
2010-08-03 21:20:11 +02:00
TAILQ_ENTRY(i3_ws) tailq;
2010-07-22 01:15:18 +02:00
};
#endif