server: fix event sending type mismatches

These were not bugs in practice, because the first (and only) field of
struct wl_surface is struct wl_resource.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
Pekka Paalanen 2012-03-02 18:09:27 +02:00
parent 5ee70146c6
commit 70db367ccc
2 changed files with 7 additions and 5 deletions

View file

@ -201,7 +201,7 @@ drag_grab_focus(struct wl_pointer_grab *grab, uint32_t time,
offer = wl_data_source_send_offer(device->drag_data_source,
resource);
wl_data_device_send_enter(resource, time, surface,
wl_data_device_send_enter(resource, time, &surface->resource,
x, y, offer);
device->drag_focus = surface;