diff options
author | David Eklov <david.eklov@gmail.com> | 2016-07-10 22:47:10 -0500 |
---|---|---|
committer | David Eklov <david.eklov@gmail.com> | 2016-07-14 17:18:01 -0500 |
commit | c805e42635f3935ccf0ce927143433b94c78a3e7 (patch) | |
tree | e5b5a1da0669ab99d8a9ee32d4146689d72de87d /include/bar/render.h | |
parent | Setup to receive mouse click events and log them (diff) | |
download | sway-c805e42635f3935ccf0ce927143433b94c78a3e7.tar.gz sway-c805e42635f3935ccf0ce927143433b94c78a3e7.tar.zst sway-c805e42635f3935ccf0ce927143433b94c78a3e7.zip |
Extract workspace size computation from render_workspace_button()
Also remove some unnecessary strtup()s and rename a few variables and functions.
Diffstat (limited to 'include/bar/render.h')
-rw-r--r-- | include/bar/render.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 | */ |
15 | void set_window_height(struct window *window, int height); | 15 | void set_window_height(struct window *window, int height); |
16 | 16 | ||
17 | /** | ||
18 | * Compute the size of a workspace name | ||
19 | */ | ||
20 | void 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 */ |