src/video/wayland/SDL_waylandmouse.c
changeset 8135 dd4729596096
parent 8116 f7c2f71251e5
child 8149 681eb46b8ac4
     1.1 --- a/src/video/wayland/SDL_waylandmouse.c	Tue Jan 28 09:13:46 2014 -0300
     1.2 +++ b/src/video/wayland/SDL_waylandmouse.c	Tue Jan 28 11:39:37 2014 -0300
     1.3 @@ -181,6 +181,7 @@
     1.4                     surface->h * surface->pitch);
     1.5  
     1.6          data->surface = wl_compositor_create_surface(wd->compositor);
     1.7 +        wl_surface_set_user_data(data->surface, NULL);
     1.8          wl_surface_attach(data->surface,
     1.9                            data->buffer,
    1.10                            0,
    1.11 @@ -214,6 +215,7 @@
    1.12           * reference to it here */
    1.13          data->buffer = NULL;
    1.14          data->surface = wl_compositor_create_surface(d->compositor);
    1.15 +        wl_surface_set_user_data(data->surface, NULL);
    1.16          wl_surface_attach(data->surface,
    1.17                            WAYLAND_wl_cursor_image_get_buffer(wlcursor->images[0]),
    1.18                            0,