From 200cb115ab835e5a063fb8290bcba3911dab0608 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Mon, 12 Aug 2013 13:51:01 +0400 Subject: [PATCH] (widget_init): init pos_flags member to WPOS_KEEP_DEFAULT. Signed-off-by: Andrew Borodin --- lib/widget/widget-common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/widget/widget-common.c b/lib/widget/widget-common.c index ec01a2c42..39d7fc317 100644 --- a/lib/widget/widget-common.c +++ b/lib/widget/widget-common.c @@ -145,6 +145,7 @@ widget_init (Widget * w, int y, int x, int lines, int cols, w->y = y; w->cols = cols; w->lines = lines; + w->pos_flags = WPOS_KEEP_DEFAULT; w->callback = callback; w->mouse = mouse_handler; w->set_options = widget_default_set_options_callback;