From 64348d4fb14b90188c4065743a51011094a26323 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Sat, 12 Oct 2019 23:56:27 -0700 Subject: [PATCH] Fixed the persistent black border when in horizontal mode --- src/wofi.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/wofi.c b/src/wofi.c index 3f87ef6..7c26fd5 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -494,7 +494,11 @@ void wofi_init(struct map* config) { gtk_widget_set_name(inner_box, "inner-box"); gtk_flow_box_set_activate_on_single_click(GTK_FLOW_BOX(inner_box), FALSE); - gtk_container_add(GTK_CONTAINER(scroll), inner_box); + + GtkWidget* wrapper_box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); + gtk_box_set_homogeneous(GTK_BOX(wrapper_box), TRUE); + gtk_container_add(GTK_CONTAINER(wrapper_box), inner_box); + gtk_container_add(GTK_CONTAINER(scroll), wrapper_box); gtk_flow_box_set_filter_func(GTK_FLOW_BOX(inner_box), do_filter, NULL, NULL);