wlt: toolkit: fix scheduling resize on widget-creation
Instead of scheduling for redraw, we have to schedule for resize as the new widget might want to change the size constraints. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
0f04e6a86c
commit
f145bd0ee5
@ -1370,7 +1370,7 @@ int wlt_window_create_widget(struct wlt_window *wnd,
|
||||
widget->wnd = wnd;
|
||||
widget->data = data;
|
||||
|
||||
wlt_window_schedule_redraw(wnd);
|
||||
wlt_window_set_size(wnd, wnd->buffer.width, wnd->buffer.height);
|
||||
shl_dlist_link_tail(&wnd->widget_list, &widget->list);
|
||||
*out = widget;
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user