[Commits] SDL: Wayland: Fixed showing created cursors incorrectly before t...

libsdl.org revision control commits-owner at libsdl.org
Fri Mar 11 13:21:59 PST 2016


details:   https://hg.libsdl.org/SDL/rev/991977532d7f
changeset: 10113:991977532d7f
user:      Philipp Wiesemann <philipp.wiesemann at arcor.de>
date:      Fri Mar 11 22:09:50 2016 +0100
description:
Wayland: Fixed showing created cursors incorrectly before the first redraw.

diffstat:

 src/video/wayland/SDL_waylandmouse.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r f3c18811079d -r 991977532d7f src/video/wayland/SDL_waylandmouse.c
--- a/src/video/wayland/SDL_waylandmouse.c	Thu Mar 10 21:00:44 2016 +0100
+++ b/src/video/wayland/SDL_waylandmouse.c	Fri Mar 11 22:09:50 2016 +0100
@@ -334,13 +334,13 @@
     {
         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
     {


More information about the commits mailing list