all repos — tint2 @ 2ded92352d67da47170bc149a800a3de09693f20

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

*fix* using variable length array looks even better


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

2ded92352d67da47170bc149a800a3de09693f20

parent

d7b705e03d9f6bb1f63bb4c3e6f48a7074ac7ee0

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

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

@@ -201,12 +201,11 @@

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 = malloc (w * h * sizeof (DATA32)); + DATA32 icon_data[w * h]; int length = w * h; for (i = 0; i < length; ++i) icon_data[i] = tmp_data[i]; - img = imlib_create_image_using_copied_data (w, h, icon_data); - free(icon_data); + img = imlib_create_image_using_data (w, h, icon_data); #else img = imlib_create_image_using_data (w, h, (DATA32*)tmp_data); #endif