From 42af50b090f03e920368de3fd6872cf5b62c918e Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Fri, 17 Oct 2025 19:58:35 -0400 Subject: fix spacing and sizing and shit --- layer_surface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'layer_surface.c') diff --git a/layer_surface.c b/layer_surface.c index fc0a7e2..7758dde 100644 --- a/layer_surface.c +++ b/layer_surface.c @@ -1,5 +1,5 @@ #include "./state.h" -#include "array.h" +#include "config.h" struct zwlr_layer_surface_v1_listener layer_surface_listener; @@ -16,8 +16,8 @@ void create_surface(client_state* state) { uint32_t desired_width = 0; uint32_t desired_height = state->line_height; if (state->lines > 0) { - desired_width = 600; // calculate based on width of option strings desired_height = (state->lines + 1) * state->line_height; + desired_width = MAX(state->required_width, min_width); } // create surface -- cgit v1.2.3