close(fd);
}
- if (!keyboard->focus)
+ if (!keyboard->focus || !keyboard->focus->surface || !keyboard->focus->surface->resource)
return;
if (wl_resource_get_client(keyboard->focus->surface->resource) == client)
struct wl_client *client;
uint32_t serial;
- if (!keyboard->focus)
+ if (!keyboard->focus || !keyboard->focus->surface || !keyboard->focus->surface->resource)
return;
client = wl_resource_get_client(keyboard->focus->surface->resource);
struct wl_client *client;
uint32_t serial;
- if (!keyboard->focus)
+ if (!keyboard->focus || !keyboard->focus->surface || !keyboard->focus->surface->resource)
return;
client = wl_resource_get_client(keyboard->focus->surface->resource);
struct wl_client *client;
uint32_t serial;
- if (!keyboard->focus)
+ if (!keyboard->focus || !keyboard->focus->surface || !keyboard->focus->surface->resource)
return;
client = wl_resource_get_client(keyboard->focus->surface->resource);
struct wl_client *client;
uint32_t serial;
- if (!keyboard->focus)
+ if (!keyboard->focus || !keyboard->focus->surface || !keyboard->focus->surface->resource)
return;
client = wl_resource_get_client(keyboard->focus->surface->resource);
wl_list_insert(&pointer->resource_list, wl_resource_get_link(res));
wl_resource_set_implementation(res, &pointer_impl, pointer, unbind_resource);
- if (!pointer->focus)
+ if (!pointer->focus || !pointer->focus->surface || !pointer->focus->surface->resource)
return;
if (wl_resource_get_client(pointer->focus->surface->resource) == client)
struct wl_client *client;
uint32_t serial;
- if (!pointer->focus)
+ if (!pointer->focus || !pointer->focus->surface || !pointer->focus->surface->resource)
return;
client = wl_resource_get_client(pointer->focus->surface->resource);
struct wl_client *client;
uint32_t serial;
- if (!pointer->focus)
+ if (!pointer->focus || !pointer->focus->surface || !pointer->focus->surface->resource)
return;
client = wl_resource_get_client(pointer->focus->surface->resource);
wl_fixed_t fy = wl_fixed_from_double(y);
struct wl_client *client;
- if (!pointer->focus)
+ if (!pointer->focus || !pointer->focus->surface || !pointer->focus->surface->resource)
return;
client = wl_resource_get_client(pointer->focus->surface->resource);
struct wl_client *client;
uint32_t serial;
- if (!pointer->focus)
+ if (!pointer->focus || !pointer->focus->surface || !pointer->focus->surface->resource)
return;
client = wl_resource_get_client(pointer->focus->surface->resource);
wl_fixed_t v = wl_fixed_from_double(value);
struct wl_client *client;
- if (!pointer->focus)
+ if (!pointer->focus || !pointer->focus->surface || !pointer->focus->surface->resource)
return;
client = wl_resource_get_client(pointer->focus->surface->resource);
wl_fixed_t fy = wl_fixed_from_double(y);
pepper_touch_point_t *point = get_touch_point(touch, id);
- PEPPER_CHECK(!point || !point->focus || !point->focus->surface ||
- !point->focus->surface->resource, return, "No targets to send touch down.\n");
+ if (!point || !point->focus || !point->focus->surface || !point->focus->surface->resource)
+ return;
wl_resource_for_each(resource, &touch->resource_list)
{
uint32_t serial;
pepper_touch_point_t *point = get_touch_point(touch, id);
- PEPPER_CHECK(!point || !point->focus || !point->focus->surface ||
- !point->focus->surface->resource, return, "No targets to send touch down.\n");
+ if (!point || !point->focus || !point->focus->surface || !point->focus->surface->resource)
+ return;
serial = wl_display_next_serial(touch->seat->compositor->display);
wl_fixed_t fy = wl_fixed_from_double(y);
pepper_touch_point_t *point = get_touch_point(touch, id);
- PEPPER_CHECK(!point || !point->focus || !point->focus->surface ||
- !point->focus->surface->resource, return, "No targets to send touch down.\n");
+ if (!point || !point->focus || !point->focus->surface || !point->focus->surface->resource)
+ return;
wl_resource_for_each(resource, &touch->resource_list)
{