Respect user bar height preference
This is an i3-gaps feature we support
This commit is contained in:
parent
1e8faeec02
commit
531c175d3e
|
@ -158,6 +158,9 @@ void render_frame(struct swaybar *bar,
|
||||||
CAIRO_CONTENT_COLOR_ALPHA, NULL);
|
CAIRO_CONTENT_COLOR_ALPHA, NULL);
|
||||||
cairo_t *cairo = cairo_create(recorder);
|
cairo_t *cairo = cairo_create(recorder);
|
||||||
uint32_t height = render_to_cairo(cairo, bar, output);
|
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) {
|
if (height != output->height) {
|
||||||
// Reconfigure surface
|
// Reconfigure surface
|
||||||
zwlr_layer_surface_v1_set_size(
|
zwlr_layer_surface_v1_set_size(
|
||||||
|
|
Loading…
Reference in a new issue