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()
{
printf("*** cleanup_battery()\n");
if (bat1_font_desc) pango_font_description_free(bat1_font_desc);
if (bat2_font_desc) pango_font_description_free(bat2_font_desc);
if (path_energy_now) g_free(path_energy_now);

View file

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

View file

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

View file

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

View file

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

View file

@ -839,8 +839,8 @@ start:
case UnmapNotify:
case DestroyNotify:
if (e.xany.window == server.composite_manager) {
// TODO: Stop real_transparency
//signal_pending = SIGUSR2;
// Stop real_transparency
signal_pending = SIGUSR1;
break;
}
if (e.xany.window == g_tooltip.window || !systray.area.on_screen)
@ -857,13 +857,11 @@ start:
ev = &e.xclient;
if (ev->data.l[1] == server.atom._NET_WM_CM_S0) {
if (ev->data.l[2] == None)
// TODO: Stop real_transparency
//signal_pending = SIGUSR2;
;
// Stop real_transparency
signal_pending = SIGUSR1;
else
// TODO: Start real_transparency
//signal_pending = SIGUSR2;
;
// Start real_transparency
signal_pending = SIGUSR1;
}
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) {
@ -900,7 +898,7 @@ start:
if (signal_pending == SIGUSR1) {
// restart tint2
// 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;
}
else {

View file

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

View file

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