mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 04:54:35 +00:00
Wayland: Add tracking of XDG fullscreen state
(cherry picked from commit afb127769a
)
This commit is contained in:
parent
51018f19d0
commit
ebe2b648ea
@ -182,6 +182,7 @@ typedef struct _GLFWwindowWayland
|
||||
GLFWbool visible;
|
||||
GLFWbool maximized;
|
||||
GLFWbool activated;
|
||||
GLFWbool fullscreen;
|
||||
GLFWbool hovered;
|
||||
GLFWbool transparent;
|
||||
struct wl_surface* surface;
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user