all repos — tint2 @ fe2dde30db19ac8f5349b6d2dcaab8dcff0149b8

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

*fix* tooltip hide fixed
*fix* hopefully unnecessary code removed



git-svn-id: http://tint2.googlecode.com/svn/trunk@200 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
Andreas.Fink85 Andreas.Fink85@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
commit

fe2dde30db19ac8f5349b6d2dcaab8dcff0149b8

parent

f3c9534f9a6e9fccb9b20c29316c2ed9303f0f72

2 files changed, 22 insertions(+), 22 deletions(-)

jump to
M src/tint.csrc/tint.c

@@ -526,27 +526,27 @@ remove_task( tsk );

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);
M src/tooltip/tooltip.csrc/tooltip/tooltip.c

@@ -231,6 +231,7 @@ {

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 @@ if (g_tooltip.mapped) {

g_tooltip.mapped = False; XUnmapWindow(server.dsp, g_tooltip.window); } - g_tooltip.task = 0; }