From f4c4abfb0278fee74f4ea53a2d3a75c1218bbe78 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Sat, 8 Feb 2020 18:13:05 -0800 Subject: [PATCH] Forgot I had a min function --- src/wofi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wofi.c b/src/wofi.c index a21305e..580b790 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -377,7 +377,7 @@ static void expand(GtkExpander* expander, gpointer data) { static void widget_allocate(GtkWidget* widget, GdkRectangle* allocation, gpointer data) { (void) widget; (void) data; - min_height = allocation->height < min_height ? allocation->height : min_height; + min_height = utils_min(min_height, allocation->height); if(wl != NULL) { zwlr_layer_surface_v1_set_size(wlr_surface, width, min_height * lines); wl_surface_commit(wl_surface);