mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-27 03:42:49 +00:00
Wayland: Ignore invalid scale values from compositor
This commit is contained in:
parent
5c75ac0a96
commit
c129dd9331
1 changed files with 2 additions and 2 deletions
4
glfw/wl_monitor.c
vendored
4
glfw/wl_monitor.c
vendored
|
|
@ -94,8 +94,8 @@ static void outputHandleScale(void* data,
|
|||
int32_t factor)
|
||||
{
|
||||
struct _GLFWmonitor *monitor = data;
|
||||
|
||||
monitor->wl.scale = factor;
|
||||
if (factor > 0 && factor < 24)
|
||||
monitor->wl.scale = factor;
|
||||
}
|
||||
|
||||
static const struct wl_output_listener outputListener = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue