Wayland: Fixed storing a theme cursor which is never used in video data.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Wed, 16 Mar 2016 22:09:23 +0100
changeset 10119 ac9831ff70d1
parent 10117 7552aa4c1c6d
child 10120 f49e8a97c214
Wayland: Fixed storing a theme cursor which is never used in video data.
src/video/wayland/SDL_waylandvideo.c
src/video/wayland/SDL_waylandvideo.h
--- a/src/video/wayland/SDL_waylandvideo.c	Fri Mar 11 08:33:47 2016 -0800
+++ b/src/video/wayland/SDL_waylandvideo.c	Wed Mar 16 22:09:23 2016 +0100
@@ -253,7 +253,6 @@
     } else if (strcmp(interface, "wl_shm") == 0) {
         d->shm = wl_registry_bind(registry, id, &wl_shm_interface, 1);
         d->cursor_theme = WAYLAND_wl_cursor_theme_load(NULL, 32, d->shm);
-        d->default_cursor = WAYLAND_wl_cursor_theme_get_cursor(d->cursor_theme, "left_ptr");
 
 #ifdef SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH
     } else if (strcmp(interface, "qt_touch_extension") == 0) {
--- a/src/video/wayland/SDL_waylandvideo.h	Fri Mar 11 08:33:47 2016 -0800
+++ b/src/video/wayland/SDL_waylandvideo.h	Wed Mar 16 22:09:23 2016 +0100
@@ -42,7 +42,6 @@
     struct wl_compositor *compositor;
     struct wl_shm *shm;
     struct wl_cursor_theme *cursor_theme;
-    struct wl_cursor *default_cursor;
     struct wl_pointer *pointer;
     struct wl_shell *shell;