qutodetect composite manager and automaticaly switch real/fake transparency

git-svn-id: http://tint2.googlecode.com/svn/trunk@425 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
thilor77
2010-04-18 14:49:50 +00:00
parent 7ee42e8ca1
commit 64530181d9
8 changed files with 7 additions and 16 deletions

View File

@@ -94,7 +94,6 @@ void default_battery()
void cleanup_battery() void cleanup_battery()
{ {
printf("*** cleanup_battery()\n");
if (bat1_font_desc) pango_font_description_free(bat1_font_desc); if (bat1_font_desc) pango_font_description_free(bat1_font_desc);
if (bat2_font_desc) pango_font_description_free(bat2_font_desc); if (bat2_font_desc) pango_font_description_free(bat2_font_desc);
if (path_energy_now) g_free(path_energy_now); if (path_energy_now) g_free(path_energy_now);

View File

@@ -71,7 +71,6 @@ void default_clock()
void cleanup_clock() void cleanup_clock()
{ {
printf("*** cleanup_clock()\n");
if (time1_font_desc) pango_font_description_free(time1_font_desc); if (time1_font_desc) pango_font_description_free(time1_font_desc);
if (time2_font_desc) pango_font_description_free(time2_font_desc); if (time2_font_desc) pango_font_description_free(time2_font_desc);
if (time1_format) g_free(time1_format); if (time1_format) g_free(time1_format);

View File

@@ -108,7 +108,6 @@ void cleanup_panel()
{ {
if (!panel1) return; if (!panel1) return;
printf("*** cleanup_panel()\n");
cleanup_taskbar(); cleanup_taskbar();
int i; int i;

View File

@@ -67,7 +67,6 @@ printf("*** default_systray()\n");
void cleanup_systray() void cleanup_systray()
{ {
printf("*** cleanup_systray()\n");
systray_enabled = 0; systray_enabled = 0;
systray_max_icon_size = 0; systray_max_icon_size = 0;
systray.area.on_screen = 0; systray.area.on_screen = 0;

View File

@@ -184,7 +184,6 @@ void cleanup_taskbar()
Taskbar *tskbar; Taskbar *tskbar;
int i, j; int i, j;
printf("*** cleanup_taskbar()\n");
if (win_to_task_table) g_hash_table_foreach(win_to_task_table, taskbar_remove_task, 0); if (win_to_task_table) g_hash_table_foreach(win_to_task_table, taskbar_remove_task, 0);
for (i=0 ; i < nb_panel ; i++) { for (i=0 ; i < nb_panel ; i++) {
panel = &panel1[i]; panel = &panel1[i];

View File

@@ -839,8 +839,8 @@ start:
case UnmapNotify: case UnmapNotify:
case DestroyNotify: case DestroyNotify:
if (e.xany.window == server.composite_manager) { if (e.xany.window == server.composite_manager) {
// TODO: Stop real_transparency // Stop real_transparency
//signal_pending = SIGUSR2; signal_pending = SIGUSR1;
break; break;
} }
if (e.xany.window == g_tooltip.window || !systray.area.on_screen) if (e.xany.window == g_tooltip.window || !systray.area.on_screen)
@@ -857,13 +857,11 @@ start:
ev = &e.xclient; ev = &e.xclient;
if (ev->data.l[1] == server.atom._NET_WM_CM_S0) { if (ev->data.l[1] == server.atom._NET_WM_CM_S0) {
if (ev->data.l[2] == None) if (ev->data.l[2] == None)
// TODO: Stop real_transparency // Stop real_transparency
//signal_pending = SIGUSR2; signal_pending = SIGUSR1;
;
else else
// TODO: Start real_transparency // Start real_transparency
//signal_pending = SIGUSR2; signal_pending = SIGUSR1;
;
} }
if (!systray.area.on_screen) break; if (!systray.area.on_screen) break;
if (e.xclient.message_type == server.atom._NET_SYSTEM_TRAY_OPCODE && e.xclient.format == 32 && e.xclient.window == net_sel_win) { if (e.xclient.message_type == server.atom._NET_SYSTEM_TRAY_OPCODE && e.xclient.format == 32 && e.xclient.window == net_sel_win) {
@@ -900,7 +898,7 @@ start:
if (signal_pending == SIGUSR1) { if (signal_pending == SIGUSR1) {
// restart tint2 // restart tint2
// SIGUSR1 used when : user's signal, composite manager stop/start or xrandr // SIGUSR1 used when : user's signal, composite manager stop/start or xrandr
FD_CLR (x11_fd, &fdset); FD_CLR (x11_fd, &fdset); // not sure if needed
goto start; goto start;
} }
else { else {

View File

@@ -50,7 +50,6 @@ void default_tooltip()
void cleanup_tooltip() void cleanup_tooltip()
{ {
printf("*** cleanup_tooltip()\n");
stop_tooltip_timeout(); stop_tooltip_timeout();
tooltip_hide(0); tooltip_hide(0);
tooltip_copy_text(0); tooltip_copy_text(0);

View File

@@ -55,7 +55,6 @@ void default_timeout()
void cleanup_timeout() void cleanup_timeout()
{ {
printf("*** cleanup_timeout()\n");
while (timeout_list) { while (timeout_list) {
timeout* t = timeout_list->data; timeout* t = timeout_list->data;
if (t->multi_timeout) if (t->multi_timeout)