Rename variable
This commit is contained in:
parent
0f084faca5
commit
6e3db0be3d
12
glfw/wl_client_side_decorations.c
vendored
12
glfw/wl_client_side_decorations.c
vendored
@ -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
2
glfw/wl_platform.h
vendored
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user