diff --git a/libi3/dpi.c b/libi3/dpi.c index c015065b..5fd4cbca 100644 --- a/libi3/dpi.c +++ b/libi3/dpi.c @@ -10,7 +10,7 @@ extern xcb_screen_t *root_screen; * */ int logical_px(const int logical) { - const double dpi = (double)root_screen->height_in_pixels * 25.4 / - (double)root_screen->height_in_millimeters; + const int dpi = (double)root_screen->height_in_pixels * 25.4 / + (double)root_screen->height_in_millimeters; return ceil((dpi / 96.0) * logical); }