sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 2d82586c88c192574dd19addd07149bd22aece87
parent 02dc4142c0093675b7a12cf01c688ea05b81bd19
Author: Nicolas Cornu <ncornu@aldebaran.com>
Date:   Fri,  7 Oct 2016 20:38:56 +0200

Add constant scale factor in get_text_size

af44154 forget one "get_text_size" made it possible to
do a format string by setting title bar.

Diffstat:
Msway/border.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sway/border.c b/sway/border.c @@ -180,7 +180,7 @@ static void render_title_bar(swayc_t *view, cairo_t *cr, struct wlc_geometry *b, // text if (view->name) { int width, height; - get_text_size(cr, config->font, &width, &height, false, "%s", view->name); + get_text_size(cr, config->font, &width, &height, 1, false, "%s", view->name); cairo_move_to(cr, x + 2, y + 2); cairo_set_source_u32(cr, colors->text); pango_printf(cr, config->font, 1, false, "%s", view->name);