for (j=0 ; j < strlen(panel_items_order) ; j++) {
if (panel_items_order[j] == 'L')
launcher_enabled = 1;
- //if (panel_items_order[j] == 'T')
+ if (panel_items_order[j] == 'T')
+ taskbar_enabled = 1;
if (panel_items_order[j] == 'B') {
#ifdef ENABLE_BATTERY
battery_enabled = 1;
Task *task_active;
Task *task_drag;
+int taskbar_enabled;
guint win_hash(gconstpointer key) { return (guint)*((Window*)key); }
gboolean win_compare(gconstpointer a, gconstpointer b) { return (*((Window*)a) == *((Window*)b)); }
win_to_task_table = 0;
urgent_timeout = 0;
urgent_list = 0;
+ taskbar_enabled = 0;
}
void cleanup_taskbar()
GPtrArray* task_get_tasks(Window win)
{
- if (win_to_task_table)
+ if (win_to_task_table && taskbar_enabled)
return g_hash_table_lookup(win_to_task_table, &win);
else
return 0;
Window *win;
int num_results, i;
+ if (!taskbar_enabled) return;
win = server_get_property (server.root_win, server.atom._NET_CLIENT_LIST, XA_WINDOW, &num_results);
if (!win) return;
extern GHashTable* win_to_task_table;
extern Task *task_active;
extern Task *task_drag;
+extern int taskbar_enabled;
// tint2 use one taskbar per desktop.
typedef struct {