all repos — tint2 @ de5045d88e26169223460398c86d73bb166bbbcd

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

tooltip: Round up y coordinate of text (looks slightly better)

git-svn-id: http://tint2.googlecode.com/svn/trunk@659 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
o9000 o9000
commit

de5045d88e26169223460398c86d73bb166bbbcd

parent

54154e8298b883b2d419952e9b1f564f0013b8bc

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M src/tooltip/tooltip.csrc/tooltip/tooltip.c

@@ -241,7 +241,9 @@ pango_layout_set_width(layout, width*PANGO_SCALE);

pango_layout_set_height(layout, height*PANGO_SCALE); pango_layout_set_ellipsize(layout, PANGO_ELLIPSIZE_END); // I do not know why this is the right way, but with the below cairo_move_to it seems to be centered (horiz. and vert.) - cairo_move_to(c, -r1.x/2+g_tooltip.bg->border.width+g_tooltip.paddingx, -r1.y/2+g_tooltip.bg->border.width+g_tooltip.paddingy); + cairo_move_to(c, + -r1.x/2 + g_tooltip.bg->border.width + g_tooltip.paddingx, + -r1.y/2 + 1 + g_tooltip.bg->border.width + g_tooltip.paddingy); pango_cairo_show_layout (c, layout); g_object_unref (layout);