all repos — tint2 @ 46168f672750f168ceaf387895ca56bd48f3e470

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

fixed segfault when remove desktop with task

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

46168f672750f168ceaf387895ca56bd48f3e470

parent

1a9ce9decd792836cfd2e15448230957679cb894

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

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

@@ -224,7 +224,10 @@

GPtrArray* task_get_tasks(Window win) { - return g_hash_table_lookup(win_to_task_table, &win); + if (win_to_task_table) + return g_hash_table_lookup(win_to_task_table, &win); + else + return 0; }

@@ -235,10 +238,6 @@ int num_results, i;

win = server_get_property (server.root_win, server.atom._NET_CLIENT_LIST, XA_WINDOW, &num_results); if (!win) return; - - // Remove any old and set active win - // remark from Andreas: This seems unneccessary... -// active_task(); GList* win_list = g_hash_table_get_keys(win_to_task_table); GList* it;