all repos — tint2 @ 48e7e38b11ce4f1add6154f80113becf6291ec43

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

Compute task button size correctly if max size is 0 (issue #575)
o9000 mrovi9000@gmail.com
commit

48e7e38b11ce4f1add6154f80113becf6291ec43

parent

dc191668fe18893e112b2784c2412d89d3ff74ec

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

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

@@ -223,6 +223,11 @@ panel->g_task.background[TASK_ICONIFIED] = panel->g_task.background[TASK_NORMAL];

if ((panel->g_task.config_background_mask & (1 << TASK_URGENT)) == 0) panel->g_task.background[TASK_URGENT] = panel->g_task.background[TASK_ACTIVE]; + if (!panel->g_task.maximum_width) + panel->g_task.maximum_width = server.monitors[panel->monitor].width; + if (!panel->g_task.maximum_height) + panel->g_task.maximum_height = server.monitors[panel->monitor].height; + if (panel_horizontal) { panel->g_task.area.posy = panel->g_taskbar.area.posy + panel->g_taskbar.background[TASKBAR_NORMAL]->border.width +

@@ -261,9 +266,6 @@ 5,

PANGO_WRAP_WORD_CHAR, PANGO_ELLIPSIZE_END, FALSE); - - if (!panel->g_task.maximum_width && panel_horizontal) - panel->g_task.maximum_width = server.monitors[panel->monitor].width; panel->g_task.text_posx = panel->g_task.background[0]->border.width + panel->g_task.area.paddingxlr; panel->g_task.text_height = panel->g_task.area.height - (2 * panel->g_task.area.paddingy);