From 6b421fabd132358c23c60faf8b71bcd59ec87d1c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 3 Aug 2020 17:07:30 +0530 Subject: [PATCH] Wayland: Fix a typo in the previous release that broke reading mouse cursor size Fixes #2895 --- docs/changelog.rst | 2 ++ glfw/wl_cursors.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 6aaa3d0da..3480d3a37 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -9,6 +9,8 @@ To update |kitty|, :doc:`follow the instructions `. - hints kitten: Allow customizing hint colors (:pull:`2894`) +- Wayland: Fix a typo in the previous release that broke reading mouse cursor size (:iss:`2895`) + 0.18.2 [2020-07-28] -------------------- diff --git a/glfw/wl_cursors.c b/glfw/wl_cursors.c index dac6e5633..b3aef51b3 100644 --- a/glfw/wl_cursors.c +++ b/glfw/wl_cursors.c @@ -16,7 +16,7 @@ pixels_from_scale(int scale) { const char *env = getenv("XCURSOR_SIZE"); if (env) { const int retval = atoi(env); - if (retval > 0 && retval < 2048) factor = 32; + if (retval > 0 && retval < 2048) factor = retval; } queried_env = true; }