diff options
author | Mikkel Oscar Lyderik <[email protected]> | 2016-02-22 17:27:17 +0100 |
---|---|---|
committer | Mikkel Oscar Lyderik <[email protected]> | 2016-02-27 22:12:35 +0100 |
commit | 6d57f03028b4b32b4377d869be8de9a7e6aa55ee (patch) | |
tree | 786e749fd53707e36e4b9927516f8375857eec87 /include/bar/bar.h | |
parent | e19e32cf81a2f28bc9434b252facc96f1a55cb91 (diff) |
Make single bar handle multiple outputs
Diffstat (limited to 'include/bar/bar.h')
-rw-r--r-- | include/bar/bar.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/bar/bar.h b/include/bar/bar.h index 89496da6..c20efc55 100644 --- a/include/bar/bar.h +++ b/include/bar/bar.h @@ -8,8 +8,7 @@ struct bar { struct config *config; struct status_line *status; - struct output *output; - /* list_t *outputs; */ + list_t *outputs; int ipc_event_socketfd; int ipc_socketfd; @@ -22,6 +21,7 @@ struct output { struct registry *registry; list_t *workspaces; char *name; + int idx; }; struct workspace { @@ -35,7 +35,12 @@ struct workspace { /** * Setup bar. */ -void bar_setup(struct bar *bar, const char *socket_path, const char *bar_id, int desired_output); +void bar_setup(struct bar *bar, const char *socket_path, const char *bar_id); + +/** + * Create new output struct from name. + */ +struct output *new_output(const char *name); /** * Bar mainloop. |