diff --git a/src/wl_platform.h b/src/wl_platform.h index 618b9dbb..b8e94295 100644 --- a/src/wl_platform.h +++ b/src/wl_platform.h @@ -182,6 +182,7 @@ typedef struct _GLFWwindowWayland GLFWbool visible; GLFWbool maximized; GLFWbool activated; + GLFWbool fullscreen; GLFWbool hovered; GLFWbool transparent; struct wl_surface* surface; diff --git a/src/wl_window.c b/src/wl_window.c index 3578568f..b798ec64 100644 --- a/src/wl_window.c +++ b/src/wl_window.c @@ -564,8 +564,9 @@ static void xdgToplevelHandleConfigure(void* userData, else if (maximized && !window->wl.maximized) _glfwInputWindowMaximize(window, GLFW_TRUE); - window->wl.activated = activated; - window->wl.maximized = maximized; + window->wl.activated = activated; + window->wl.maximized = maximized; + window->wl.fullscreen = fullscreen; } static void xdgToplevelHandleClose(void* userData,