]> Dogcows Code - chaz/tint2/commitdiff
*fix* tooltip hide fixed
authorAndreas Fink <andreas.fink85@googlemail.com>
Sun, 27 Sep 2009 08:06:31 +0000 (08:06 +0000)
committerAndreas Fink <andreas.fink85@googlemail.com>
Sun, 27 Sep 2009 08:06:31 +0000 (08:06 +0000)
*fix* hopefully unnecessary code removed

src/tint.c
src/tooltip/tooltip.c

index c85bd1bac8f4cbb9dbd4358098c9ab769bb90513..1b6c4e8988ecfb53d5227eaab397d630c8055ce6 100644 (file)
@@ -526,27 +526,27 @@ void event_property_notify (XEvent *e)
                                panel_refresh = 1;
                        }
                }
-               else if (at == server.atom.WM_STATE) {
-                       // Iconic state
-                       // TODO : try to delete following code
-                       if (window_is_iconified (win)) {
-                               if (task_active) {
-                                       if (task_active->win == tsk->win) {
-                                               Task *tsk2;
-                                               GSList *l0;
-                                               for (i=0 ; i < nb_panel ; i++) {
-                                                       for (j=0 ; j < panel1[i].nb_desktop ; j++) {
-                                                               for (l0 = panel1[i].taskbar[j].area.list; l0 ; l0 = l0->next) {
-                                                                       tsk2 = l0->data;
-                                                                       tsk2->area.is_active = 0;
-                                                               }
-                                                       }
-                                               }
-                                               task_active = 0;
-                                       }
-                               }
-                       }
-               }
+//             else if (at == server.atom.WM_STATE) {
+//                     // Iconic state
+//                     // TODO : try to delete following code
+//                     if (window_is_iconified (win)) {
+//                             if (task_active) {
+//                                     if (task_active->win == tsk->win) {
+//                                             Task *tsk2;
+//                                             GSList *l0;
+//                                             for (i=0 ; i < nb_panel ; i++) {
+//                                                     for (j=0 ; j < panel1[i].nb_desktop ; j++) {
+//                                                             for (l0 = panel1[i].taskbar[j].area.list; l0 ; l0 = l0->next) {
+//                                                                     tsk2 = l0->data;
+//                                                                     tsk2->area.is_active = 0;
+//                                                             }
+//                                                     }
+//                                             }
+//                                             task_active = 0;
+//                                     }
+//                             }
+//                     }
+//             }
                // Window icon changed
                else if (at == server.atom._NET_WM_ICON) {
                        get_icon(tsk);
index 17b45580a106e04157381dc766cbdf9b6ef459a3..85ab223f2fa11f70277ef0c1c31151447ce42dd9 100644 (file)
@@ -231,6 +231,7 @@ void tooltip_trigger_hide(Tooltip* tooltip)
        if (g_tooltip.mapped) {
                g_tooltip.current_state = TOOLTIP_ABOUT_TO_HIDE;
                struct timeval t = g_tooltip.hide_timeout.it_value;
+               g_tooltip.task = 0;
                if (t.tv_sec == 0 && t.tv_usec == 0) {
                        tooltip_hide();
                        alarm(0);
@@ -251,5 +252,4 @@ void tooltip_hide()
                g_tooltip.mapped = False;
                XUnmapWindow(server.dsp, g_tooltip.window);
        }
-       g_tooltip.task = 0;
 }
This page took 0.027041 seconds and 4 git commands to generate.