Wayland: Ensure that glfw window content scale and kitty window content scale are in sync after the window is placed on a monitor

This commit is contained in:
Kovid Goyal
2019-11-16 10:47:05 +05:30
parent 737d8b96b6
commit d8dd22048a
3 changed files with 8 additions and 0 deletions

1
glfw/wl_platform.h vendored
View File

@@ -156,6 +156,7 @@ typedef struct _GLFWwindowWayland
// We need to track the monitors the window spans on to calculate the
// optimal scaling factor.
int scale;
bool initial_scale_notified;
_GLFWmonitor** monitors;
int monitorsCount;
int monitorsSize;