]> git.sur5r.net Git - i3/i3/commitdiff
retina support: convert logical to physical pixels for default_border_width
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 11 Aug 2014 07:45:35 +0000 (09:45 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 11 Aug 2014 07:46:02 +0000 (09:46 +0200)
src/config_directives.c

index b5e4a32a80926d0bc0f6d684b0d1e7bb4d7b2a40..690e08bf007293a6fa6352b521d836f5b5390be9 100644 (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);
     }
 }