Wayland: Fix a typo in the previous release that broke reading mouse cursor size

Fixes #2895
This commit is contained in:
Kovid Goyal 2020-08-03 17:07:30 +05:30
parent ab3c9658bd
commit 6b421fabd1
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,8 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
- hints kitten: Allow customizing hint colors (:pull:`2894`) - 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] 0.18.2 [2020-07-28]
-------------------- --------------------

2
glfw/wl_cursors.c vendored
View File

@ -16,7 +16,7 @@ pixels_from_scale(int scale) {
const char *env = getenv("XCURSOR_SIZE"); const char *env = getenv("XCURSOR_SIZE");
if (env) { if (env) {
const int retval = atoi(env); const int retval = atoi(env);
if (retval > 0 && retval < 2048) factor = 32; if (retval > 0 && retval < 2048) factor = retval;
} }
queried_env = true; queried_env = true;
} }