From ae01dbb92c6af017f3dc5cbfd591ca3ec3dfd441 Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Thu, 18 Oct 2018 17:53:07 -0500 Subject: [PATCH] Fix fullscreen in Wayland/GL. --- gtk/src/gtk_display_driver_opengl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk/src/gtk_display_driver_opengl.cpp b/gtk/src/gtk_display_driver_opengl.cpp index da160f1a..3494102c 100644 --- a/gtk/src/gtk_display_driver_opengl.cpp +++ b/gtk/src/gtk_display_driver_opengl.cpp @@ -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