From 31640832d793b22f5f20f25908ee598d45089f27 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Sat, 6 Apr 2024 00:47:49 -0700 Subject: [PATCH] Fixed hide_search=true for surfaces that don't use percent sizing --- src/wofi.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/wofi.c b/src/wofi.c index 729e1e2..ada9dc5 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -1754,6 +1754,11 @@ static gboolean do_percent_size(gpointer data) { static gboolean do_percent_size_first(gpointer data){ gdk_threads_add_timeout(50, do_percent_size, data); do_percent_size(data); + return G_SOURCE_REMOVE; +} + +static gboolean hide_search_first(gpointer data) { + (void) data; gtk_widget_set_visible(entry, !hide_search); return G_SOURCE_REMOVE; } @@ -2073,6 +2078,8 @@ void wofi_init(struct map* _config) { gdk_threads_add_timeout(25, do_percent_size_first, geo_str); } + gdk_threads_add_timeout(5, hide_search_first, NULL); + wl_list_init(&mode_list); pthread_create(&mode_thread, NULL, start_mode_thread, mode);