aboutsummaryrefslogtreecommitdiff
path: root/swaybar
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-03-29 12:03:08 -0400
committerDrew DeVault <sir@cmpwn.com>2018-03-29 22:11:08 -0400
commit531c175d3e60bf9dbfd538af1fd5eebb906c6f91 (patch)
tree490309fa6f30309ec7925ef9588ec68b218227c6 /swaybar
parent1e8faeec0263a7da311a13c56a0de34e47e66fa6 (diff)
Respect user bar height preference
This is an i3-gaps feature we support
Diffstat (limited to 'swaybar')
-rw-r--r--swaybar/render.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/swaybar/render.c b/swaybar/render.c
index ba22e9d4..317b0f65 100644
--- a/swaybar/render.c
+++ b/swaybar/render.c
@@ -158,6 +158,9 @@ void render_frame(struct swaybar *bar,
CAIRO_CONTENT_COLOR_ALPHA, NULL);
cairo_t *cairo = cairo_create(recorder);
uint32_t height = render_to_cairo(cairo, bar, output);
+ if (bar->config->height >= 0 && height < (uint32_t)bar->config->height) {
+ height = bar->config->height;
+ }
if (height != output->height) {
// Reconfigure surface
zwlr_layer_surface_v1_set_size(