From: Michael Stapelberg Date: Mon, 11 Aug 2014 07:45:35 +0000 (+0200) Subject: retina support: convert logical to physical pixels for default_border_width X-Git-Tag: 4.9~58 X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=commitdiff_plain;h=80db544e26659c35b04da8e839d401b7e60a7d83 retina support: convert logical to physical pixels for default_border_width --- diff --git a/src/config_directives.c b/src/config_directives.c index b5e4a32a..690e08bf 100644 --- a/src/config_directives.c +++ b/src/config_directives.c @@ -271,13 +271,15 @@ CFGFUN(new_window, const char *windowtype, const char *border, const long width) } if (strcmp(windowtype, "new_window") == 0) { - DLOG("default tiled border style = %d and border width = %d\n", border_style, border_width); + DLOG("default tiled border style = %d and border width = %d (%d physical px)\n", + border_style, border_width, logical_px(border_width)); config.default_border = border_style; - config.default_border_width = border_width; + config.default_border_width = logical_px(border_width); } else { - DLOG("default floating border style = %d and border width = %d\n", border_style, border_width); + DLOG("default floating border style = %d and border width = %d (%d physical px)\n", + border_style, border_width, logical_px(border_width)); config.default_floating_border = border_style; - config.default_floating_border_width = border_width; + config.default_floating_border_width = logical_px(border_width); } }