aboutsummaryrefslogtreecommitdiffstats
path: root/include/bar/bar.h
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2016-02-27 16:18:50 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2016-02-27 16:18:50 -0500
commit3453910c3e887be900c69394b738e34d9d8ba095 (patch)
tree28e0d8d72557ac57a2f9aed5c94818c8ba20e97f /include/bar/bar.h
parentSet pointer pos before focusing view under it (diff)
parentFree config before exiting sway. (diff)
downloadsway-3453910c3e887be900c69394b738e34d9d8ba095.tar.gz
sway-3453910c3e887be900c69394b738e34d9d8ba095.tar.zst
sway-3453910c3e887be900c69394b738e34d9d8ba095.zip
Merge pull request #492 from mikkeloscar/swaybar-multi-output
Display single swaybar on multiple outputs
Diffstat (limited to 'include/bar/bar.h')
-rw-r--r--include/bar/bar.h11
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 @@
8struct bar { 8struct bar {
9 struct config *config; 9 struct config *config;
10 struct status_line *status; 10 struct status_line *status;
11 struct output *output; 11 list_t *outputs;
12 /* list_t *outputs; */
13 12
14 int ipc_event_socketfd; 13 int ipc_event_socketfd;
15 int ipc_socketfd; 14 int ipc_socketfd;
@@ -22,6 +21,7 @@ struct output {
22 struct registry *registry; 21 struct registry *registry;
23 list_t *workspaces; 22 list_t *workspaces;
24 char *name; 23 char *name;
24 int idx;
25}; 25};
26 26
27struct workspace { 27struct workspace {
@@ -35,7 +35,12 @@ struct workspace {
35/** 35/**
36 * Setup bar. 36 * Setup bar.
37 */ 37 */
38void bar_setup(struct bar *bar, const char *socket_path, const char *bar_id, int desired_output); 38void bar_setup(struct bar *bar, const char *socket_path, const char *bar_id);
39
40/**
41 * Create new output struct from name.
42 */
43struct output *new_output(const char *name);
39 44
40/** 45/**
41 * Bar mainloop. 46 * Bar mainloop.