all repos — tint2 @ 64edd55add0bf937b90e207ce0da8bb8d7e10df4

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

Task: take into account border width when computing text height
o9000 mrovi9000@gmail.com
commit

64edd55add0bf937b90e207ce0da8bb8d7e10df4

parent

bd28ee77d9a29823b8a49cae0ba003c793991ffa

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

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

@@ -288,7 +288,8 @@ PANGO_ELLIPSIZE_END,

FALSE); panel->g_task.text_posx = left_bg_border_width(panel->g_task.background[0]) + panel->g_task.area.paddingxlr; - panel->g_task.text_height = panel->g_task.area.height - (2 * panel->g_task.area.paddingy); + panel->g_task.text_height = + panel->g_task.area.height - (2 * panel->g_task.area.paddingy) - top_bottom_border_width(&panel->g_task.area); if (panel->g_task.has_icon) { panel->g_task.icon_size1 = MIN(MIN(panel->g_task.maximum_width, panel->g_task.maximum_height), MIN(panel->g_task.area.width, panel->g_task.area.height)) -