static struct wl_client *
client_launch(struct weston_compositor *compositor,
- struct weston_process *proc,
+ struct wet_process *proc,
const char *path,
- weston_process_cleanup_func_t cleanup)
+ wet_process_cleanup_func_t cleanup)
{
struct wl_client *client = NULL;
struct custom_env child_env;
}
struct process_info {
- struct weston_process proc;
+ struct wet_process proc;
char *path;
};
int
sigchld_handler(int signal_number, void *data)
{
- struct weston_process *p;
+ struct wet_process *p;
struct ivi_compositor *ivi = data;
int status;
pid_t pid;
wl_list_remove(&p->link);
wl_list_init(&p->link);
- p->cleanup(p, status);
+ p->cleanup(p, status, NULL);
}
if (pid < 0 && errno != ECHILD)
static void
-process_handle_sigchld(struct weston_process *process, int status)
+process_handle_sigchld(struct wet_process *process, int status, void *data)
{
struct process_info *pinfo =
container_of(process, struct process_info, proc);
}
static void
-curtain_surface_committed(struct weston_surface *es, int32_t sx, int32_t sy)
+curtain_surface_committed(struct weston_surface *es, struct weston_coord_surface new_origin)
{
}
woutput->width, woutput->height);
weston_surface_set_label_func(surface, curtain_get_label);
- weston_view_set_position(view, woutput->x, woutput->y);
+ weston_view_set_position(view, woutput->pos);
output->fullscreen_view.fs = zalloc(sizeof(struct ivi_surface));
if (!output->fullscreen_view.fs)
shell_set_app_position(struct wl_client *client, struct wl_resource *res,
const char *app_id, int32_t x, int32_t y)
{
+ struct weston_coord_global pos;
struct ivi_compositor *ivi = wl_resource_get_user_data(res);
struct ivi_surface *surf = ivi_find_app(ivi, app_id);
if (!surf || !app_id || surf->role != IVI_SURFACE_ROLE_POPUP)
return;
- weston_view_set_position(surf->view, x, y);
+ pos.c.x = x;
+ pos.c.y = y;
+ weston_view_set_position(surf->view, pos);
weston_compositor_schedule_repaint(ivi->compositor);
}