Wayland: Add tracking of XDG fullscreen state

This commit is contained in:
Camilla Löwy 2022-06-10 18:36:16 +02:00
parent ed39ff43f9
commit afb127769a
2 changed files with 4 additions and 2 deletions

View File

@ -234,6 +234,7 @@ typedef struct _GLFWwindowWayland
GLFWbool visible; GLFWbool visible;
GLFWbool maximized; GLFWbool maximized;
GLFWbool activated; GLFWbool activated;
GLFWbool fullscreen;
GLFWbool hovered; GLFWbool hovered;
GLFWbool transparent; GLFWbool transparent;
struct wl_surface* surface; struct wl_surface* surface;

View File

@ -522,8 +522,9 @@ static void xdgToplevelHandleConfigure(void* userData,
else if (maximized && !window->wl.maximized) else if (maximized && !window->wl.maximized)
_glfwInputWindowMaximize(window, GLFW_TRUE); _glfwInputWindowMaximize(window, GLFW_TRUE);
window->wl.activated = activated; window->wl.activated = activated;
window->wl.maximized = maximized; window->wl.maximized = maximized;
window->wl.fullscreen = fullscreen;
} }
static void xdgToplevelHandleClose(void* userData, static void xdgToplevelHandleClose(void* userData,