projects
/
platform
/
upstream
/
kmscon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f04e6a
)
wlt: toolkit: fix scheduling resize on widget-creation
author
David Herrmann
<dh.herrmann@googlemail.com>
Sun, 30 Sep 2012 21:49:24 +0000
(23:49 +0200)
committer
David Herrmann
<dh.herrmann@googlemail.com>
Sun, 30 Sep 2012 21:49:24 +0000
(23:49 +0200)
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>
src/wlt_toolkit.c
patch
|
blob
|
history
diff --git
a/src/wlt_toolkit.c
b/src/wlt_toolkit.c
index
60b7c7c
..
bbc8591
100644
(file)
--- a/
src/wlt_toolkit.c
+++ b/
src/wlt_toolkit.c
@@
-1370,7
+1370,7
@@
int wlt_window_create_widget(struct wlt_window *wnd,
widget->wnd = wnd;
widget->data = data;
- wlt_window_s
chedule_redraw(wnd
);
+ wlt_window_s
et_size(wnd, wnd->buffer.width, wnd->buffer.height
);
shl_dlist_link_tail(&wnd->widget_list, &widget->list);
*out = widget;
return 0;