all repos — tint2 @ a8e7f4137a546286dacccc5da004c3f939f44424

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

Fix crash on 32-bit
o9000 mrovi9000@gmail.com
commit

a8e7f4137a546286dacccc5da004c3f939f44424

parent

27715a5dbbe9960563dafe8e4e5de2a32ae7e181

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

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

@@ -262,15 +262,10 @@ int w, h;

gulong *tmp_data; tmp_data = get_best_icon(data, get_icon_count(data, i), i, &w, &h, panel->g_task.icon_size1); -#ifdef __x86_64__ DATA32 icon_data[w * h]; - int length = w * h; - for (int j = 0; j < length; ++j) + for (int j = 0; j < w * h; ++j) icon_data[j] = tmp_data[j]; img = imlib_create_image_using_copied_data(w, h, icon_data); -#else - img = imlib_create_image_using_data(w, h, (DATA32 *)tmp_data); -#endif XFree(data); } else { // get Pixmap icon