i3/i3bar/include/workspaces.h

27 lines
485 B
C
Raw Normal View History

2010-07-21 19:15:18 -04:00
#ifndef WORKSPACES_H_
#define WORKSPACES_H_
#include "common.h"
2010-07-29 21:11:54 -04:00
typedef struct i3_ws i3_ws;
2010-07-21 19:15:18 -04:00
2010-07-29 21:11:54 -04:00
TAILQ_HEAD(ws_head, i3_ws);
2010-07-21 19:15:18 -04:00
2010-07-22 22:43:43 -04:00
void parse_workspaces_json();
2010-07-21 19:15:18 -04:00
void free_workspaces();
2010-07-29 21:11:54 -04:00
struct i3_ws {
2010-08-03 15:20:11 -04:00
int num;
char *name;
int name_width;
bool visible;
bool focused;
bool urgent;
rect rect;
struct i3_output *output;
2010-07-21 19:15:18 -04:00
2010-08-03 15:20:11 -04:00
TAILQ_ENTRY(i3_ws) tailq;
2010-07-21 19:15:18 -04:00
};
#endif