Re: [PATCH] smoke:fix the segment fault error

2012-02-08 Thread Kristian Høgsberg
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,

Re: [PATCH] smoke:fix the segment fault error

2012-02-02 Thread Juan Zhao
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

Re: [PATCH] smoke:fix the segment fault error

2012-02-02 Thread Tiago Vignatti
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-

[PATCH] smoke:fix the segment fault error

2012-02-02 Thread juan . j . zhao
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 ++