]> Dogcows Code - chaz/tint2/commitdiff
qutodetect composite manager and automaticaly switch real/fake transparency
authorThierry Lorthiois <lorthiois@bbsoft.fr>
Sun, 18 Apr 2010 14:49:50 +0000 (14:49 +0000)
committerThierry Lorthiois <lorthiois@bbsoft.fr>
Sun, 18 Apr 2010 14:49:50 +0000 (14:49 +0000)
src/battery/battery.c
src/clock/clock.c
src/panel.c
src/systray/systraybar.c
src/taskbar/taskbar.c
src/tint.c
src/tooltip/tooltip.c
src/util/timer.c

index ff8e0a6d99a96b6294b9c0e8bfa6faf446f86473..45180f9377e45cd29c7277522b0294f285156f46 100644 (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);
index c7ac910468c4242b0e7f561edae711c3e676bab7..273fb818e17991089c391a52a85d1b9dc5ea9924 100644 (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);
index db66fc33fd21967c424d27e2dd99d5f387e9a126..ed17cb33cde46ef6ec6d34c02b23681a32b39876 100644 (file)
@@ -108,7 +108,6 @@ void cleanup_panel()
 {
        if (!panel1) return;
 
-printf("*** cleanup_panel()\n");
        cleanup_taskbar();
 
        int i;
index cc1412294ffa75737704b680d5c817ffb125cdf5..81eba8f8edac0920c59af99d463b5a6c57bba1f4 100644 (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;
index 10e0d13b0d292f338ecae947e70de1564a75ed12..34f49b0a52accebe6e2230d33376c04b930c4ea3 100644 (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];
index f88b57fd7f3cb7fb1e549d25fbca40f205ae45d2..90100668feaeee64177bbae9f013fda088c8c1a4 100644 (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 {
index 1c195047facedaf5af0155d8aa5a64d2496b8ee2..a724473c397cf4b7cc5ecda5cb8a0c56f65110a9 100644 (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);
index 1dd2f11c36cb844286c0ac04603f47e4d75fc2cd..b4db7f48dfa0915eec9692bbece3937781d4d63f 100644 (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)
This page took 0.039395 seconds and 4 git commands to generate.