|
|
@ -351,8 +351,10 @@ data_device_start_drag(struct wl_client *client, struct wl_resource *resource, |
|
|
|
struct weston_drag *drag = resource->data; |
|
|
|
struct weston_drag *drag = resource->data; |
|
|
|
struct weston_surface *icon = NULL; |
|
|
|
struct weston_surface *icon = NULL; |
|
|
|
|
|
|
|
|
|
|
|
/* FIXME: Check that client has implicit grab on the origin
|
|
|
|
if (seat->pointer->button_count == 0 || |
|
|
|
* surface that matches the given time. */ |
|
|
|
seat->pointer->grab_serial != serial || |
|
|
|
|
|
|
|
seat->pointer->focus != origin_resource->data) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
/* FIXME: Check that the data source type array isn't empty. */ |
|
|
|
/* FIXME: Check that the data source type array isn't empty. */ |
|
|
|
|
|
|
|
|
|
|
|