all repos — tint2 @ 3be419b59b7239e5372e07cb6549249416eaacf0

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

cleanup config file

git-svn-id: http://tint2.googlecode.com/svn/trunk@70 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
lorthiois@bbsoft.fr lorthiois@bbsoft.fr@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
commit

3be419b59b7239e5372e07cb6549249416eaacf0

parent

09b95187d344842234be3f78c2316330258905c5

M ChangeLogChangeLog

@@ -1,3 +1,7 @@

+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
M src/Makefilesrc/Makefile

@@ -1,6 +1,6 @@

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
M src/config.csrc/config.c

@@ -759,6 +759,12 @@ 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); if (time1_format) fprintf(fp, "time1_format = %s\n", time1_format);
M src/systray/systraybar.csrc/systray/systraybar.c

@@ -37,7 +37,7 @@ #define SYSTEM_TRAY_BEGIN_MESSAGE 1

#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;

@@ -158,6 +158,29 @@ // resize other objects on panel

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() {

@@ -165,6 +188,8 @@ if (XGetSelectionOwner(server.dsp, server.atom._NET_SYSTEM_TRAY_SCREEN) != None) {

fprintf(stderr, "tint2 : another systray is running\n"); return 0; } + + //create_hint_win(); // init systray protocol net_sel_win = XCreateSimpleWindow(server.dsp, server.root_win, -1, -1, 1, 1, 0, 0, 0);

@@ -202,6 +227,7 @@ XDestroyWindow(server.dsp, net_sel_win);

net_sel_win = None; } } + /* void fix_geometry()
M tintrc01tintrc01

@@ -6,7 +6,7 @@ #---------------------------------------------

# BACKGROUND AND BORDER #--------------------------------------------- rounded = 7 -border_width = 1 +border_width = 2 background_color = #000000 60 border_color = #ffffff 18

@@ -25,7 +25,7 @@ # PANEL

#--------------------------------------------- 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
M tintrc02tintrc02

@@ -7,13 +7,13 @@ # BACKGROUND AND BORDER

#--------------------------------------------- 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

@@ -25,7 +25,7 @@ # PANEL

#--------------------------------------------- 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

@@ -57,7 +57,7 @@

#--------------------------------------------- # SYSTRAYBAR #--------------------------------------------- -systray_padding = 0 2 3 +systray_padding = 0 4 3 systray_background_id = 0 #---------------------------------------------
M tintrc05tintrc05

@@ -12,7 +12,7 @@ border_color = #000000 0

rounded = 1 border_width = 0 -background_color = #cccccc 20 +background_color = #f6b655 90 border_color = #cccccc 40 #---------------------------------------------

@@ -20,7 +20,7 @@ # PANEL

#--------------------------------------------- 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

@@ -41,9 +41,9 @@ task_text = 1

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

@@ -56,7 +56,7 @@

#--------------------------------------------- # CLOCK #--------------------------------------------- -time1_format = %H:%M:%S +time1_format = %H:%M time1_font = sans 13 #time2_format = %A %d %B time2_font = sans 7