mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-18 17:29:28 +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_FOCUS:
|
||||||
case WIDGET_UNFOCUS:
|
case WIDGET_UNFOCUS:
|
||||||
case WIDGET_DRAW:
|
case WIDGET_DRAW:
|
||||||
|
case WIDGET_RESIZED:
|
||||||
input_update (in, FALSE);
|
input_update (in, FALSE);
|
||||||
return MSG_HANDLED;
|
return MSG_HANDLED;
|
||||||
|
|
||||||
@ -1268,6 +1269,10 @@ input_update (WInput * in, gboolean clear_first)
|
|||||||
/* Adjust the mark */
|
/* Adjust the mark */
|
||||||
in->mark = min (in->mark, buf_len);
|
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)
|
if (has_history != 0)
|
||||||
draw_history_button (in);
|
draw_history_button (in);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user