]>
Dogcows Code - chaz/tint2/blob - src/systray/systraybar.h
dd5e08dd8c9b9c5793590c153fde86d47346a8ee
1 /**************************************************************************
2 * Copyright (C) 2009 thierry lorthiois (lorthiois@bbsoft.fr)
5 * systray implementation come from 'docker-1.5' by Ben Jansens,
6 * and from systray/xembed specification (freedesktop.org).
8 **************************************************************************/
16 #include <X11/extensions/Xdamage.h>
19 #define XEMBED_EMBEDDED_NOTIFY 0
20 // Flags for _XEMBED_INFO
21 #define XEMBED_MAPPED (1 << 0)
25 // always start with area
30 int alpha
, saturation
, brightness
;
31 int icon_size
, icons_per_column
, icons_per_row
, marging
;
41 // TODO: manage icon's show/hide
45 timeout
* render_timeout
;
49 // net_sel_win != None when protocol started
50 extern Window net_sel_win
;
51 extern Systraybar systray
;
52 extern int refresh_systray
;
53 extern int systray_enabled
;
54 extern int systray_max_icon_size
;
56 // default global data
57 void default_systray();
60 void cleanup_systray();
62 // initialize protocol and panel position
64 void init_systray_panel(void *p
);
66 void draw_systray(void *obj
, cairo_t
*c
);
67 int resize_systray(void *obj
);
71 // many tray icon doesn't manage stop/restart of the systray manager
74 void net_message(XClientMessageEvent
*e
);
76 gboolean
add_icon(Window id
);
77 void remove_icon(TrayWindow
*traywin
);
79 void refresh_systray_icon();
80 void systray_render_icon(TrayWindow
* traywin
);
81 void kde_update_icons();
This page took 0.043036 seconds and 4 git commands to generate.