diff --git a/libi3/dpi.c b/libi3/dpi.c index 9bb32b68..d15e35be 100644 --- a/libi3/dpi.c +++ b/libi3/dpi.c @@ -49,7 +49,7 @@ void init_dpi(void) { dpi = 0; goto init_dpi_end; } - dpi = (long)round(in_dpi); + dpi = lround(in_dpi); DLOG("Found Xft.dpi = %ld.\n", dpi);