summaryrefslogtreecommitdiffstats
path: root/include/bar
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2016-07-14 18:57:37 -0400
committerLibravatar GitHub <noreply@github.com>2016-07-14 18:57:37 -0400
commit6abbe04e7590f3bfba13351eb87ada70ac3d506e (patch)
treef7c64d6e9d082bd080960c42e21e54edf01839de /include/bar
parentMerge pull request #726 from Hummer12007/hwc (diff)
parentSend command to sway to change workspace when workspace button is clicked (diff)
downloadsway-6abbe04e7590f3bfba13351eb87ada70ac3d506e.tar.gz
sway-6abbe04e7590f3bfba13351eb87ada70ac3d506e.tar.zst
sway-6abbe04e7590f3bfba13351eb87ada70ac3d506e.zip
Merge pull request #743 from deklov/panel-as-shell-03
Set panels/backgrounds' geometries correctly and don't render them ex…
Diffstat (limited to 'include/bar')
-rw-r--r--include/bar/bar.h3
-rw-r--r--include/bar/ipc.h6
-rw-r--r--include/bar/render.h5
3 files changed, 14 insertions, 0 deletions
diff --git a/include/bar/bar.h b/include/bar/bar.h
index c20efc55..a3c511d9 100644
--- a/include/bar/bar.h
+++ b/include/bar/bar.h
@@ -32,6 +32,9 @@ struct workspace {
32 bool urgent; 32 bool urgent;
33}; 33};
34 34
35/** Global bar state */
36extern struct bar swaybar;
37
35/** 38/**
36 * Setup bar. 39 * Setup bar.
37 */ 40 */
diff --git a/include/bar/ipc.h b/include/bar/ipc.h
index 741c067b..c11931d0 100644
--- a/include/bar/ipc.h
+++ b/include/bar/ipc.h
@@ -13,5 +13,11 @@ void ipc_bar_init(struct bar *bar, const char *bar_id);
13 */ 13 */
14bool handle_ipc_event(struct bar *bar); 14bool handle_ipc_event(struct bar *bar);
15 15
16
17/**
18 * Send workspace command to sway
19 */
20void ipc_send_workspace_command(const char *workspace_name);
21
16#endif /* _SWAYBAR_IPC_H */ 22#endif /* _SWAYBAR_IPC_H */
17 23
diff --git a/include/bar/render.h b/include/bar/render.h
index 931a1cdd..114f43f4 100644
--- a/include/bar/render.h
+++ b/include/bar/render.h
@@ -14,4 +14,9 @@ void render(struct output *output, struct config *config, struct status_line *li
14 */ 14 */
15void set_window_height(struct window *window, int height); 15void set_window_height(struct window *window, int height);
16 16
17/**
18 * Compute the size of a workspace name
19 */
20void workspace_button_size(struct window *window, const char *workspace_name, int *width, int *height);
21
17#endif /* _SWAYBAR_RENDER_H */ 22#endif /* _SWAYBAR_RENDER_H */