From 1eeba63c69abaa4e5c3ac326f97370d4fb53e469 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Sun, 18 Aug 2019 18:31:34 -0700 Subject: [PATCH] The contents of the search box will no longer be deleted on auto-focus --- src/wofi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wofi.c b/src/wofi.c index 74f7926..eb418d2 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -264,7 +264,7 @@ static gboolean key_press(GtkWidget* widget, GdkEvent* event, gpointer data) { break; default: if(!gtk_widget_has_focus(entry)) { - gtk_widget_grab_focus(entry); + gtk_entry_grab_focus_without_selecting(GTK_ENTRY(entry)); } break; }