]> Dogcows Code - chaz/tint2/blob - src/systray/systraybar.h
fab1891e801540d54fa278d28bdd9d72426a06f9
[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 <X11/Xlib.h>
13 #include <X11/Xutil.h>
14 #include <X11/Xatom.h>
15 #include "area.h"
16
17
18 typedef struct {
19 // always start with area
20 Area area;
21
22 GSList *list_icons;
23 } Systraybar;
24
25
26 typedef struct
27 {
28 Window id;
29 int x, y;
30 int width, height;
31
32 long *icon_data;
33 } TrayWindow;
34
35
36 extern Window net_sel_win;
37 extern Systraybar systray;
38
39
40 void init_systray();
41 void cleanup_systray();
42 int net_init();
43 void net_message(XClientMessageEvent *e);
44 void icon_remove(TrayWindow *traywin);
45
46 void resize_systray (void *obj);
47
48
49 #endif
50
This page took 0.03546 seconds and 3 git commands to generate.