mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
WInput: handle WIDGET_RESIZED.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
c6ddd28366
commit
dc5c49a395
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user