From f1f0360fa77b2a0a83b1bc9a628671b5ebcfa488 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Mon, 22 Jul 2019 16:48:27 -0300 Subject: [PATCH] Adding configuration option to set the unlock_delay property. --- src/pw3270/window.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/pw3270/window.c b/src/pw3270/window.c index 17de2ae..6399eb5 100644 --- a/src/pw3270/window.c +++ b/src/pw3270/window.c @@ -715,11 +715,16 @@ static GtkWidget * trace_window = NULL; if(str) g_free(str); } + { char str[2]; str[0] = get_integer_from_config("terminal","model",2)+'0'; str[1] = 0; - lib3270_set_model(v3270_get_session(widget->terminal),str); + lib3270_set_model(host,str); + + unsigned int unlock_delay = (unsigned int) get_integer_from_config("terminal","unlock_delay",(int) lib3270_get_unlock_delay(host)); + lib3270_set_unlock_delay(host,unlock_delay); + } for(f=0;f