all repos — tint2 @ f9a7bb8b1e871b33fd39cd50e4f19103a9c7a8db

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

*fix* stupid mistake corrected



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

f9a7bb8b1e871b33fd39cd50e4f19103a9c7a8db

parent

a20eb44a28ab5056d330f43d3df76ce669be9e0b

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

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

@@ -33,11 +33,15 @@ #include "window.h"

#include "panel.h" +/* win_to_task_table holds for every Window an array of tasks. Usually the array contains only one + element. However for omnipresent windows (windows which are visible in every taskbar) the array + contains to every Task* on each panel a pointer (i.e. GPtrArray.len == server.nb_desktop) +*/ GHashTable* win_to_task_table = 0; guint win_hash(gconstpointer key) { return (guint)*((Window*)key); } gboolean win_compare(gconstpointer a, gconstpointer b) { return (*((Window*)a) == *((Window*)b)); } -void free_ptr_array(gpointer* data) { g_ptr_array_free(data, 1); } +void free_ptr_array(gpointer data) { g_ptr_array_free(data, 1); } void init_taskbar() {