Skip to content

Commit

Permalink
Wayland: Fixed showing created cursors incorrectly before the first r…
Browse files Browse the repository at this point in the history
…edraw.
  • Loading branch information
philippwiesemann committed Mar 11, 2016
1 parent 0c923fd commit 167dd4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/video/wayland/SDL_waylandmouse.c
Expand Up @@ -334,13 +334,13 @@ Wayland_ShowCursor(SDL_Cursor *cursor)
{
Wayland_CursorData *data = cursor->driverdata;

wl_surface_attach(data->surface, data->buffer, 0, 0);
wl_surface_damage(data->surface, 0, 0, data->w, data->h);
wl_surface_commit(data->surface);
wl_pointer_set_cursor (pointer, 0,
data->surface,
data->hot_x,
data->hot_y);
wl_surface_attach(data->surface, data->buffer, 0, 0);
wl_surface_damage(data->surface, 0, 0, data->w, data->h);
wl_surface_commit(data->surface);
}
else
{
Expand Down

0 comments on commit 167dd4a

Please sign in to comment.