From 80db544e26659c35b04da8e839d401b7e60a7d83 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 11 Aug 2014 09:45:35 +0200 Subject: [PATCH] retina support: convert logical to physical pixels for default_border_width --- src/config_directives.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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); } }