all repos — tint2 @ 237b19c5c9aaa0462eb73c472d20deeaf228e3ee

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

src/taskbar/taskbar.h (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/**************************************************************************
* Copyright (C) 2008 thierry lorthiois (lorthiois@bbsoft.fr)
*
* taskbar
*
**************************************************************************/

#ifndef TASKBAR_H
#define TASKBAR_H

#include "task.h"

extern GHashTable* win_to_task_table;
extern Task *task_active;
extern Task *task_drag;

// tint2 use one taskbar per desktop.
typedef struct {
	// always start with area
	Area area;

	int desktop;

	// task parameters
	int task_width;
	int task_modulo;
	int text_width;
} Taskbar;


typedef struct {
	//always start with area
	Area area;
	Background* bg;
	Background* bg_active;
	int use_active;
} Global_taskbar;


// default global data
void default_taskbar();

// freed memory
void cleanup_taskbar();

void init_taskbar();

Task *task_get_task (Window win);
GPtrArray* task_get_tasks(Window win);
void task_refresh_tasklist ();

void resize_taskbar(void *obj);


#endif