Wayland: Specify the output we want to put our window on.
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Sat, 28 Mar 2015 19:43:46 +0100
changeset 9468d001cff818bb
parent 9467 975453c4e217
child 9469 3f8d36ffd19d
Wayland: Specify the output we want to put our window on.

Fixes Bugzilla #2803.
src/video/wayland/SDL_waylandwindow.c
     1.1 --- a/src/video/wayland/SDL_waylandwindow.c	Wed Mar 18 01:14:45 2015 +0100
     1.2 +++ b/src/video/wayland/SDL_waylandwindow.c	Sat Mar 28 19:43:46 2015 +0100
     1.3 @@ -116,7 +116,7 @@
     1.4      if (window->flags & SDL_WINDOW_FULLSCREEN)
     1.5          wl_shell_surface_set_fullscreen(wind->shell_surface,
     1.6                                          WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT,
     1.7 -                                        0, NULL);
     1.8 +                                        0, (struct wl_output *)window->fullscreen_mode.driverdata);
     1.9      else
    1.10          wl_shell_surface_set_toplevel(wind->shell_surface);
    1.11  
    1.12 @@ -132,7 +132,7 @@
    1.13      if (fullscreen)
    1.14          wl_shell_surface_set_fullscreen(wind->shell_surface,
    1.15                                          WL_SHELL_SURFACE_FULLSCREEN_METHOD_SCALE,
    1.16 -                                        0, NULL);
    1.17 +                                        0, (struct wl_output *)_display->driverdata);
    1.18      else
    1.19          wl_shell_surface_set_toplevel(wind->shell_surface);
    1.20