retina support: convert logical to physical pixels for default_border_width

This commit is contained in:
Michael Stapelberg 2014-08-11 09:45:35 +02:00
parent 89d3f93bec
commit 80db544e26
1 changed files with 6 additions and 4 deletions

View File

@ -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);
}
}