all repos — openbox @ efcb68de1d1bd5e776d2b9feb5e49d268b0450d8

openbox fork - make it a bit more like ryudo

and tidy it up a bit
Mikael Magnusson mikachu@comhem.se
commit

efcb68de1d1bd5e776d2b9feb5e49d268b0450d8

parent

e298cde9b010a51f026886c6aaa93fe1cd22250e

1 files changed, 4 insertions(+), 5 deletions(-)

jump to
M render/font.crender/font.c

@@ -406,11 +406,10 @@ XftDrawStringUtf8(d, &c, t->font->xftfont, x,

t->font->xftfont->ascent + y, (FcChar8*)text->str, l); #else /* USE_PANGO */ - /* layout_line() bases y on the baseline, while - * layout() bases y on the top of the ink layout. - * We want the baseline to always be in the same place, thusly, we use - * layout_line() - * The actual line doesn't need to be freed */ + /* layout_line() bases y on the baseline, while layout() bases y on the + * top of the ink layout. We want the baseline to always be in the same + * place, thusly, we use layout_line() + * The actual line doesn't need to be freed (per the pango docs) */ pango_xft_render_layout_line(d, &c, pango_layout_get_line(pl, 0), x * PANGO_SCALE, y * PANGO_SCALE); g_object_unref(pl);