diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2025-10-17 19:58:35 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2025-10-17 19:59:26 -0400 |
| commit | 42af50b090f03e920368de3fd6872cf5b62c918e (patch) | |
| tree | dc032a7e20f35e96b45fec80b3287ade868af6b8 /layer_surface.c | |
| parent | 3e6eeaaf599f1082c02279bb9269de9644cdfab3 (diff) | |
fix spacing and sizing and shit
Diffstat (limited to 'layer_surface.c')
| -rw-r--r-- | layer_surface.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
