all repos — tint2 @ 7597d1b4c39834851389081d0ec43e6900130de8

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

*fix* stop any pending alarms if timeout is 0


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

7597d1b4c39834851389081d0ec43e6900130de8

parent

375b21510da9fd98f3c9f5eace59ddfbada2f5e1

1 files changed, 6 insertions(+), 2 deletions(-)

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

@@ -82,8 +82,10 @@ else if (!g_tooltip.mapped) {

g_tooltip.current_state = TOOLTIP_ABOUT_TO_SHOW; g_tooltip.task = task; struct timeval t = g_tooltip.show_timeout.it_value; - if (t.tv_sec == 0 && t.tv_usec == 0) + if (t.tv_sec == 0 && t.tv_usec == 0) { + alarm(0); tooltip_show(); + } else setitimer(ITIMER_REAL, &g_tooltip.show_timeout, 0); }

@@ -229,8 +231,10 @@ {

if (g_tooltip.mapped) { g_tooltip.current_state = TOOLTIP_ABOUT_TO_HIDE; struct timeval t = g_tooltip.hide_timeout.it_value; - if (t.tv_sec == 0 && t.tv_usec == 0) + if (t.tv_sec == 0 && t.tv_usec == 0) { tooltip_hide(); + alarm(0); + } else setitimer(ITIMER_REAL, &g_tooltip.hide_timeout, 0); }