mirror of
https://github.com/i3/i3.git
synced 2025-10-29 19:35:06 +00:00
fix libi3: in dpi retrieval function wrong variable used (#6466)
this is proposed fix for #6465 --------- Co-authored-by: Dmitry K <dmitry.k@siklu.com>
This commit is contained in:
parent
d1daf169bb
commit
ab6a75a693
@ -45,7 +45,7 @@ void init_dpi(void) {
|
||||
|
||||
char *endptr;
|
||||
double in_dpi = strtod(resource, &endptr);
|
||||
if (in_dpi == HUGE_VAL || dpi < 0 || *endptr != '\0' || endptr == resource) {
|
||||
if (in_dpi == HUGE_VAL || in_dpi < 0 || *endptr != '\0' || endptr == resource) {
|
||||
ELOG("Xft.dpi = %s is an invalid number and couldn't be parsed.\n", resource);
|
||||
dpi = 0;
|
||||
goto init_dpi_end;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user