# HG changeset patch # User Emmanuel Gil Peyrot # Date 1427568226 -3600 # Sat Mar 28 19:43:46 2015 +0100 # Node ID 81fa07a189a9c28d5a6172f15812e3e223db361c # Parent 237135603a75e97a6148e0c7297a790c7c2cf1a9 Wayland: Specify the output we want to put our window on. diff --git a/src/video/wayland/SDL_waylandwindow.c b/src/video/wayland/SDL_waylandwindow.c --- a/src/video/wayland/SDL_waylandwindow.c +++ b/src/video/wayland/SDL_waylandwindow.c @@ -116,7 +116,7 @@ if (window->flags & SDL_WINDOW_FULLSCREEN) wl_shell_surface_set_fullscreen(wind->shell_surface, WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT, - 0, NULL); + 0, (struct wl_output *)window->fullscreen_mode.driverdata); else wl_shell_surface_set_toplevel(wind->shell_surface); @@ -132,7 +132,7 @@ if (fullscreen) wl_shell_surface_set_fullscreen(wind->shell_surface, WL_SHELL_SURFACE_FULLSCREEN_METHOD_SCALE, - 0, NULL); + 0, (struct wl_output *)_display->driverdata); else wl_shell_surface_set_toplevel(wind->shell_surface);