diff --git a/glfw/wl_client_side_decorations.c b/glfw/wl_client_side_decorations.c index 17a61e270..2de6d4909 100644 --- a/glfw/wl_client_side_decorations.c +++ b/glfw/wl_client_side_decorations.c @@ -151,9 +151,9 @@ free_csd_surfaces(_GLFWwindow *window) { bool ensure_csd_resources(_GLFWwindow *window) { const bool size_changed = ( - decs.for_window_size.width != window->wl.width || - decs.for_window_size.height != window->wl.height || - decs.for_window_size.scale != window->wl.scale + decs.for_window_state.width != window->wl.width || + decs.for_window_state.height != window->wl.height || + decs.for_window_state.scale != window->wl.scale ); if (size_changed) { free_title_bar_resources(window); @@ -183,9 +183,9 @@ ensure_csd_resources(_GLFWwindow *window) { if (!decs.surfaces.bottom) create_decoration_surfaces(bottom, decs.edges.bottom); position_decoration_surfaces(bottom, x, y); - decs.for_window_size.width = window->wl.width; - decs.for_window_size.height = window->wl.height; - decs.for_window_size.scale = window->wl.scale; + decs.for_window_state.width = window->wl.width; + decs.for_window_state.height = window->wl.height; + decs.for_window_state.scale = window->wl.scale; return true; } diff --git a/glfw/wl_platform.h b/glfw/wl_platform.h index 3824c2135..4492b19b5 100644 --- a/glfw/wl_platform.h +++ b/glfw/wl_platform.h @@ -164,7 +164,7 @@ typedef struct _GLFWwindowWayland struct { int width, height, scale; - } for_window_size; + } for_window_state; struct { unsigned int width, top, horizontal, vertical;