diff options
| author | Konstantin Pospelov <kupospelov@gmail.com> | 2025-03-27 20:11:59 +0100 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2025-05-25 14:48:14 +0200 |
| commit | 7e7994dbb2a2c04f55b3c74eb61577c51e9a43ae (patch) | |
| tree | 3c923a343bb45ac908b999c40ca2b95e4a1f258c /include | |
| parent | 63689bfb830b68eba8062aedef9928c55713c9bc (diff) | |
swaybar: deduplicate mode and workspace rendering code
The render_workspace_button and render_binding_mode_indicator functions are
almost the same. This commit extracts the common rendering code into a new
render_box function.
Diffstat (limited to 'include')
| -rw-r--r-- | include/swaybar/config.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/swaybar/config.h b/include/swaybar/config.h index 361acd99..ad58b3c3 100644 --- a/include/swaybar/config.h +++ b/include/swaybar/config.h @@ -14,6 +14,11 @@ struct box_colors { uint32_t text; }; +struct box_size { + uint32_t width; + uint32_t height; +}; + struct config_output { struct wl_list link; // swaybar_config::outputs char *name; |
