mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-09-21 19:47:21 +03:00
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
|
||||
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;
|
||||
}
|
||||
|
||||
|
2
glfw/wl_platform.h
vendored
2
glfw/wl_platform.h
vendored
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user