From dc5c49a3953d3ccc1d64b1c02f2ab45885e44774 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Fri, 7 Sep 2012 14:46:39 +0400 Subject: [PATCH] WInput: handle WIDGET_RESIZED. Signed-off-by: Andrew Borodin --- lib/widget/input.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/widget/input.c b/lib/widget/input.c index 209b03bb7..2d60140e5 100644 --- a/lib/widget/input.c +++ b/lib/widget/input.c @@ -1081,6 +1081,7 @@ input_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *d case WIDGET_FOCUS: case WIDGET_UNFOCUS: case WIDGET_DRAW: + case WIDGET_RESIZED: input_update (in, FALSE); return MSG_HANDLED; @@ -1268,6 +1269,10 @@ input_update (WInput * in, gboolean clear_first) /* Adjust the mark */ in->mark = min (in->mark, buf_len); + /* don't draw widget not put into dialog */ + if (WIDGET(in)->owner == NULL) + return; + if (has_history != 0) draw_history_button (in);