Fix fullscreen in Wayland/GL.

This commit is contained in:
Brandon Wright 2018-10-18 17:53:07 -05:00
parent e70675db98
commit ae01dbb92c
1 changed files with 3 additions and 2 deletions

View File

@ -763,10 +763,11 @@ S9xOpenGLDisplayDriver::create_window (int width, int height)
if (!wl.subsurface)
{
wl.subsurface = wl_subcompositor_get_subsurface (wl.subcompositor, wl.child, wl.parent);
wl_subsurface_set_desync (wl.subsurface);
wl_subsurface_set_position (wl.subsurface, x, y);
}
wl_subsurface_set_desync (wl.subsurface);
wl_subsurface_set_position (wl.subsurface, x, y);
if (wl.egl_window)
wl_egl_window_resize (wl.egl_window, w, h, 0, 0);
else