src/video/wayland/SDL_waylandvideo.c
changeset 10304 ee83e0b4a36f
parent 10302 729eff9ee77a
child 10492 786e10ab72d8
     1.1 --- a/src/video/wayland/SDL_waylandvideo.c	Thu Jun 23 18:39:05 2016 +0800
     1.2 +++ b/src/video/wayland/SDL_waylandvideo.c	Thu Sep 01 01:26:56 2016 -0700
     1.3 @@ -305,7 +305,10 @@
     1.4      } else if (strcmp(interface, "wl_shm") == 0) {
     1.5          d->shm = wl_registry_bind(registry, id, &wl_shm_interface, 1);
     1.6          d->cursor_theme = WAYLAND_wl_cursor_theme_load(NULL, 32, d->shm);
     1.7 -
     1.8 +    } else if (strcmp(interface, "zwp_relative_pointer_manager_v1") == 0) {
     1.9 +        Wayland_display_add_relative_pointer_manager(d, id);
    1.10 +    } else if (strcmp(interface, "zwp_pointer_constraints_v1") == 0) {
    1.11 +        Wayland_display_add_pointer_constraints(d, id);
    1.12  #ifdef SDL_VIDEO_DRIVER_WAYLAND_QT_TOUCH
    1.13      } else if (strcmp(interface, "qt_touch_extension") == 0) {
    1.14          Wayland_touch_create(d, id);
    1.15 @@ -395,6 +398,8 @@
    1.16      }
    1.17  
    1.18      Wayland_display_destroy_input(data);
    1.19 +    Wayland_display_destroy_pointer_constraints(data);
    1.20 +    Wayland_display_destroy_relative_pointer_manager(data);
    1.21  
    1.22      if (data->xkb_context) {
    1.23          WAYLAND_xkb_context_unref(data->xkb_context);