From a459a29ca1b6058a901da32a0f81bd617f43d834 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Mon, 4 Nov 2019 13:55:35 -0800 Subject: [PATCH] Fixed weird behavior when only one option is present --- src/wofi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wofi.c b/src/wofi.c index cb4d935..eb24d50 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -307,7 +307,7 @@ static GtkWidget* get_first_child(GtkContainer* container) { GtkWidget* min_child = NULL; int64_t x = INT64_MAX; int64_t y = INT64_MAX; - for(; list->next != NULL; list = list->next) { + for(; list != NULL; list = list->next) { GtkWidget* child = list->data; GtkAllocation alloc; gtk_widget_get_allocation(child, &alloc);