]> git.sur5r.net Git - i3/i3/blobdiff - i3bar/src/xcb.c
i3bar: render separators retina-correctly
[i3/i3] / i3bar / src / xcb.c
index 5204d716370f0a04f8639c08314b695052c403b8..fd66a3f9fdbb673f7632d4885ee58972ec77f029 100644 (file)
@@ -185,8 +185,8 @@ void refresh_statusline(void) {
         if (TAILQ_NEXT(block, blocks) != NULL && !block->no_separator && block->sep_block_width > 0) {
             /* This is not the last block, draw a separator. */
             uint32_t sep_offset = block->sep_block_width/2 + block->sep_block_width % 2;
-            uint32_t mask = XCB_GC_FOREGROUND | XCB_GC_BACKGROUND;
-            uint32_t values[] = { colors.sep_fg, colors.bar_bg };
+            uint32_t mask = XCB_GC_FOREGROUND | XCB_GC_BACKGROUND | XCB_GC_LINE_WIDTH;
+            uint32_t values[] = { colors.sep_fg, colors.bar_bg, logical_px(1) };
             xcb_change_gc(xcb_connection, statusline_ctx, mask, values);
             xcb_poly_line(xcb_connection, XCB_COORD_MODE_ORIGIN, statusline_pm,
                           statusline_ctx, 2,