]> Dogcows Code - chaz/tint2/blob - src/systray/systraybar.h
fixed issue 110 and issue 107
[chaz/tint2] / src / systray / systraybar.h
1 /**************************************************************************
2 * Copyright (C) 2009 thierry lorthiois (lorthiois@bbsoft.fr)
3 *
4 * systraybar
5 * systray implementation come from 'docker-1.5' by Ben Jansens,
6 * and from systray/xembed specification (freedesktop.org).
7 *
8 **************************************************************************/
9
10 #ifndef SYSTRAYBAR_H
11 #define SYSTRAYBAR_H
12
13 #include "common.h"
14 #include "area.h"
15
16 // XEMBED messages
17 #define XEMBED_EMBEDDED_NOTIFY 0
18 // Flags for _XEMBED_INFO
19 #define XEMBED_MAPPED (1 << 0)
20
21
22 typedef struct {
23 // always start with area
24 Area area;
25
26 GSList *list_icons;
27 } Systraybar;
28
29
30 typedef struct
31 {
32 Window id;
33 int x, y;
34 int width, height;
35 } TrayWindow;
36
37
38 extern Window net_sel_win;
39 extern Systraybar systray;
40 extern int refresh_systray;
41
42
43 void init_systray();
44 void cleanup_systray();
45 void draw_systray(void *obj, cairo_t *c, int active);
46 void resize_systray(void *obj);
47
48
49 // systray protocol
50 int init_net();
51 void cleanup_net();
52 void net_message(XClientMessageEvent *e);
53
54 gboolean add_icon(Window id);
55 void remove_icon(TrayWindow *traywin);
56
57 void refresh_systray_icon();
58
59 void kde_update_icons();
60
61 #endif
62
This page took 0.042892 seconds and 5 git commands to generate.