src/video/wayland/SDL_waylandwindow.c
changeset 10304 ee83e0b4a36f
parent 10302 729eff9ee77a
child 10492 786e10ab72d8
     1.1 --- a/src/video/wayland/SDL_waylandwindow.c	Thu Jun 23 18:39:05 2016 +0800
     1.2 +++ b/src/video/wayland/SDL_waylandwindow.c	Thu Sep 01 01:26:56 2016 -0700
     1.3 @@ -26,6 +26,7 @@
     1.4  #include "../SDL_sysvideo.h"
     1.5  #include "../../events/SDL_windowevents_c.h"
     1.6  #include "../SDL_egl_c.h"
     1.7 +#include "SDL_waylandevents_c.h"
     1.8  #include "SDL_waylandwindow.h"
     1.9  #include "SDL_waylandvideo.h"
    1.10  #include "SDL_waylandtouch.h"
    1.11 @@ -215,6 +216,10 @@
    1.12      wl_surface_set_opaque_region(data->surface, region);
    1.13      wl_region_destroy(region);
    1.14  
    1.15 +    if (c->relative_mouse_mode) {
    1.16 +        Wayland_input_lock_pointer(c->input);
    1.17 +    }
    1.18 +
    1.19      WAYLAND_wl_display_flush(c->display);
    1.20  
    1.21      return 0;