Timer: new implementation (merge finished, tests failing)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user