]> Dogcows Code - chaz/tint2/blob - src/systray/systraybar.h
remove flickering on systray
[chaz/tint2] / src / systray / systraybar.h
1 /**************************************************************************
2 * Copyright (C) 2009 thierry lorthiois (lorthiois@bbsoft.fr)
3 *
4 * systraybar
5 * based on 'docker-1.5' from Ben Jansens.
6 *
7 **************************************************************************/
8
9 #ifndef SYSTRAYBAR_H
10 #define SYSTRAYBAR_H
11
12 #include "common.h"
13 #include "area.h"
14
15
16 typedef struct {
17 // always start with area
18 Area area;
19
20 GSList *list_icons;
21 } Systraybar;
22
23
24 typedef struct
25 {
26 Window id;
27 int x, y;
28 int width, height;
29
30 long *icon_data;
31 } TrayWindow;
32
33
34 extern Window net_sel_win;
35 extern Systraybar systray;
36 extern int refresh_systray;
37
38
39 void init_systray();
40 void cleanup_systray();
41
42 int init_net();
43 void cleanup_net();
44 void net_message(XClientMessageEvent *e);
45
46 void remove_icon(TrayWindow *traywin);
47
48 void draw_systray(void *obj, cairo_t *c, int active);
49
50 void resize_systray(void *obj);
51
52 void refresh_systray_icon();
53
54 #endif
55
This page took 0.041598 seconds and 5 git commands to generate.