Timer: new implementation (merge finished, tests failing)

This commit is contained in:
o9000
2017-12-28 22:45:20 +01:00
parent 0911dcaed1
commit f64cf199e4
18 changed files with 112 additions and 118 deletions

View File

@@ -145,7 +145,7 @@ void cleanup_panel()
if (p->main_win)
XDestroyWindow(server.display, p->main_win);
p->main_win = 0;
stop_timeout(p->autohide_timeout);
stop_timer(&p->autohide_timeout);
cleanup_freespace(p);
}
@@ -1062,7 +1062,7 @@ Button *click_button(Panel *panel, int x, int y)
void stop_autohide_timeout(Panel *p)
{
stop_timeout(p->autohide_timeout);
stop_timer(&p->autohide_timeout);
}
void autohide_show(void *p)
@@ -1092,7 +1092,7 @@ void autohide_trigger_show(Panel *p)
{
if (!p)
return;
change_timeout(&p->autohide_timeout, panel_autohide_show_timeout, 0, autohide_show, p);
change_timer(&p->autohide_timeout, true, panel_autohide_show_timeout, 0, autohide_show, p);
}
void autohide_trigger_hide(Panel *p)
@@ -1107,7 +1107,7 @@ void autohide_trigger_hide(Panel *p)
if (child)
return; // mouse over one of the system tray icons
change_timeout(&p->autohide_timeout, panel_autohide_hide_timeout, 0, autohide_hide, p);
change_timer(&p->autohide_timeout, true, panel_autohide_hide_timeout, 0, autohide_hide, p);
}
void shrink_panel(Panel *panel)