]> Dogcows Code - chaz/tint2/blob - src/systray/net.c
fixed issue 45, segfault without clock
[chaz/tint2] / src / systray / net.c
1 #include "net.h"
2 #include "docker.h"
3 #include "icons.h"
4 #include <assert.h>
5
6 Atom net_opcode_atom;
7 Window net_sel_win;
8
9 static Atom net_sel_atom;
10 static Atom net_manager_atom;
11 static Atom net_message_data_atom;
12
13 /* defined in the systray spec */
14 #define SYSTEM_TRAY_REQUEST_DOCK 0
15 #define SYSTEM_TRAY_BEGIN_MESSAGE 1
16 #define SYSTEM_TRAY_CANCEL_MESSAGE 2
17
18 static void net_create_selection_window()
19 {
20 net_sel_win = XCreateSimpleWindow(display, root, -1, -1, 1, 1, 0, 0, 0);
21 assert(net_sel_win);
22 }
23
24
25 static void net_destroy_selection_window()
26 {
27 XDestroyWindow(display, net_sel_win);
28 net_sel_win = None;
29 }
30
31 void net_icon_remove(TrayWindow *traywin)
32 {
33 assert(traywin);
34
35 XSelectInput(display, traywin->id, NoEventMask);
36 }
37
38
39 void net_destroy()
40 {
41 net_destroy_selection_window();
42 }
43
44
This page took 0.040609 seconds and 4 git commands to generate.