mirror of
https://github.com/glfw/glfw.git
synced 2025-04-11 07:47:04 +00:00
Wayland: Add tracking of XDG fullscreen state
This commit is contained in:
parent
ed39ff43f9
commit
afb127769a
2 changed files with 4 additions and 2 deletions
|
@ -234,6 +234,7 @@ typedef struct _GLFWwindowWayland
|
|||
GLFWbool visible;
|
||||
GLFWbool maximized;
|
||||
GLFWbool activated;
|
||||
GLFWbool fullscreen;
|
||||
GLFWbool hovered;
|
||||
GLFWbool transparent;
|
||||
struct wl_surface* surface;
|
||||
|
|
|
@ -522,8 +522,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…
Add table
Reference in a new issue