From 6e3db0be3d2d8527b2104af280a79464fe814b1c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 27 Mar 2021 00:26:43 +0530 Subject: [PATCH] Rename variable --- glfw/wl_client_side_decorations.c | 12 ++++++------ glfw/wl_platform.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) 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;