Wayland: Fixed showing created cursors incorrectly before the first redraw.
authorPhilipp Wiesemann
Fri, 11 Mar 2016 22:09:50 +0100
changeset 10113991977532d7f
parent 10112 f3c18811079d
child 10114 6740b15172f0
Wayland: Fixed showing created cursors incorrectly before the first redraw.
src/video/wayland/SDL_waylandmouse.c
     1.1 --- a/src/video/wayland/SDL_waylandmouse.c	Thu Mar 10 21:00:44 2016 +0100
     1.2 +++ b/src/video/wayland/SDL_waylandmouse.c	Fri Mar 11 22:09:50 2016 +0100
     1.3 @@ -334,13 +334,13 @@
     1.4      {
     1.5          Wayland_CursorData *data = cursor->driverdata;
     1.6  
     1.7 -        wl_surface_attach(data->surface, data->buffer, 0, 0);
     1.8 -        wl_surface_damage(data->surface, 0, 0, data->w, data->h);
     1.9 -        wl_surface_commit(data->surface);
    1.10          wl_pointer_set_cursor (pointer, 0,
    1.11                                 data->surface,
    1.12                                 data->hot_x,
    1.13                                 data->hot_y);
    1.14 +        wl_surface_attach(data->surface, data->buffer, 0, 0);
    1.15 +        wl_surface_damage(data->surface, 0, 0, data->w, data->h);
    1.16 +        wl_surface_commit(data->surface);
    1.17      }
    1.18      else
    1.19      {