+2009-03-14
+- add systray option when convert tint-0.6 config file
+ but you need to stop other systemtray program
+
2009-03-07
- fixed segfault when time1_format empty
- fixed systray : when clock change size
CFLAGS= -O2
CC = gcc
-FLAGS=-Wall -g `pkg-config --cflags --libs cairo pangocairo x11 xinerama imlib2 glib-2.0`
+FLAGS=-Wall -g `pkg-config --cflags --libs cairo pangocairo x11 xinerama xrandr imlib2 glib-2.0`
PROGNAME=tint2
FILES=tint.c server.c panel.c config.c taskbar/task.c taskbar/taskbar.c clock/clock.c systray/systraybar.c util/window.c util/area.c
fputs("task_background_id = 2\n", fp);
fputs("task_active_background_id = 3\n", fp);
+ fputs("\n#---------------------------------------------\n", fp);
+ fputs("# SYSTRAYBAR\n", fp);
+ fputs("#---------------------------------------------\n", fp);
+ fputs("systray_padding = 4 3 4\n", fp);
+ fputs("systray_background_id = 0\n", fp);
+
fputs("\n#---------------------------------------------\n", fp);
fputs("# CLOCK\n", fp);
fputs("#---------------------------------------------\n", fp);
#define SYSTEM_TRAY_CANCEL_MESSAGE 2
// selection window
-Window net_sel_win = None;
+Window net_sel_win = None, hint_win = None;
// freedesktop specification doesn't allow multi systray
Systraybar systray;
printf("resize_systray %d %d\n", systray.area.posx, systray.area.width);
}
+/*
+void create_hint_win()
+{
+ XWMHints hints;
+ XClassHint classhints;
+ Panel *panel = systray.area.panel;
+
+ hint_win = XCreateSimpleWindow(server.dsp, server.root_win, 0, 0, 1, 1, 0, 0, 0);
+
+ hints.flags = StateHint | WindowGroupHint | IconWindowHint;
+ hints.initial_state = WithdrawnState;
+ hints.window_group = hint_win;
+ hints.icon_window = panel->main_win;
+
+ classhints.res_name = "docker";
+ classhints.res_class = "Docker";
+
+ XSetWMProperties(server.dsp, hint_win, NULL, NULL, NULL, 0,
+ NULL, &hints, &classhints);
+
+ XMapWindow(server.dsp, hint_win);
+}
+*/
int init_net()
{
return 0;
}
+ //create_hint_win();
+
// init systray protocol
net_sel_win = XCreateSimpleWindow(server.dsp, server.root_win, -1, -1, 1, 1, 0, 0, 0);
}
}
+
/*
void fix_geometry()
{
# BACKGROUND AND BORDER
#---------------------------------------------
rounded = 7
-border_width = 1
+border_width = 2
background_color = #000000 60
border_color = #ffffff 18
#---------------------------------------------
panel_monitor = all
panel_position = bottom center
-panel_size = 90% 28
+panel_size = 92% 30
panel_margin = 0 0
panel_padding = 7 0
font_shadow = 0
#---------------------------------------------
rounded = 1
border_width = 0
-background_color = #282828 40
+background_color = #282828 60
border_color = #000000 0
rounded = 1
border_width = 1
background_color = #cccccc 0
-border_color = #cccccc 30
+border_color = #cccccc 55
rounded = 1
border_width = 0
#---------------------------------------------
panel_monitor = all
panel_position = bottom center
-panel_size = 92% 30
+panel_size = 95% 30
panel_margin = 0 0
panel_padding = 7 3 7
font_shadow = 0
#---------------------------------------------
# SYSTRAYBAR
#---------------------------------------------
-systray_padding = 0 2 3
+systray_padding = 0 4 3
systray_background_id = 0
#---------------------------------------------
rounded = 1
border_width = 0
-background_color = #cccccc 20
+background_color = #f6b655 90
border_color = #cccccc 40
#---------------------------------------------
#---------------------------------------------
panel_monitor = all
panel_position = bottom center
-panel_size = 95% 22
+panel_size = 100% 22
panel_margin = 0 0
panel_padding = 0 0 0
font_shadow = 0
task_width = 160
task_centered = 1
task_padding = 5 0
-task_font = sans 9
+task_font = sans 7.5
task_font_color = #ffffff 60
-task_active_font_color = #ffffff 100
+task_active_font_color = #000000 100
task_background_id = 0
task_active_background_id = 2
#---------------------------------------------
# CLOCK
#---------------------------------------------
-time1_format = %H:%M:%S
+time1_format = %H:%M
time1_font = sans 13
#time2_format = %A %d %B
time2_font = sans 7