Rename variable

This commit is contained in:
Kovid Goyal 2021-03-27 00:26:43 +05:30
parent 0f084faca5
commit 6e3db0be3d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 7 additions and 7 deletions

View File

@ -151,9 +151,9 @@ free_csd_surfaces(_GLFWwindow *window) {
bool bool
ensure_csd_resources(_GLFWwindow *window) { ensure_csd_resources(_GLFWwindow *window) {
const bool size_changed = ( const bool size_changed = (
decs.for_window_size.width != window->wl.width || decs.for_window_state.width != window->wl.width ||
decs.for_window_size.height != window->wl.height || decs.for_window_state.height != window->wl.height ||
decs.for_window_size.scale != window->wl.scale decs.for_window_state.scale != window->wl.scale
); );
if (size_changed) { if (size_changed) {
free_title_bar_resources(window); 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); if (!decs.surfaces.bottom) create_decoration_surfaces(bottom, decs.edges.bottom);
position_decoration_surfaces(bottom, x, y); position_decoration_surfaces(bottom, x, y);
decs.for_window_size.width = window->wl.width; decs.for_window_state.width = window->wl.width;
decs.for_window_size.height = window->wl.height; decs.for_window_state.height = window->wl.height;
decs.for_window_size.scale = window->wl.scale; decs.for_window_state.scale = window->wl.scale;
return true; return true;
} }

2
glfw/wl_platform.h vendored
View File

@ -164,7 +164,7 @@ typedef struct _GLFWwindowWayland
struct { struct {
int width, height, scale; int width, height, scale;
} for_window_size; } for_window_state;
struct { struct {
unsigned int width, top, horizontal, vertical; unsigned int width, top, horizontal, vertical;