On Thu, Feb 2, 2012 at 7:02 PM, wrote:
> From: Juan Zhao
>
> Add widget_set_size in the initiate time to allow smoke get the
> correct surface later. Or it will report segment fault error
> because of the null surface.
> Also add resize_handler to not allow resizing just like flower.
Thanks,
The segment fault error is caused by a null surface inside smoke, but
not inside that desktop shell. Just initializing the widget size can
help to create the right surface.
Here is the backtrace infomation of that segment fault error:
[3695783.129] -> wl_shell@8.get_shell_surface(new id 23, wl
why do not cap that in the compositor instead?
@ -326,9 +326,13 @@ shell_surface_resize(struct wl_client *client,
struct wl_re
struct wl_resource *input_resource, uint32_t time,
uint32_t edges)
{
- struct weston_input_device *wd = input_resource-
From: Juan Zhao
Add widget_set_size in the initiate time to allow smoke get the
correct surface later. Or it will report segment fault error
because of the null surface.
Also add resize_handler to not allow resizing just like flower.
Signed-off-by: Juan Zhao
---
clients/smoke.c | 12 ++