mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-24 18:07:01 +00:00
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:
parent
737d8b96b6
commit
d8dd22048a
3 changed files with 8 additions and 0 deletions
|
|
@ -43,6 +43,9 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
|
|||
- Fix a regression in 0.14.5 that caused rendering of private use glyphs
|
||||
with and without spaces to be identical (:iss:`2117`)
|
||||
|
||||
- Wayland: Fix incorrect scale used when first creating an OS window
|
||||
(:iss:`2133`)
|
||||
|
||||
|
||||
0.14.6 [2019-09-25]
|
||||
---------------------
|
||||
|
|
|
|||
1
glfw/wl_platform.h
vendored
1
glfw/wl_platform.h
vendored
|
|
@ -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;
|
||||
|
|
|
|||
4
glfw/wl_window.c
vendored
4
glfw/wl_window.c
vendored
|
|
@ -75,6 +75,10 @@ static bool checkScaleChange(_GLFWwindow* window)
|
|||
wl_surface_set_buffer_scale(window->wl.surface, scale);
|
||||
return true;
|
||||
}
|
||||
if (window->wl.monitorsCount > 0 && !window->wl.initial_scale_notified) {
|
||||
window->wl.initial_scale_notified = true;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue