diff --git a/src/screen_queue.c b/src/screen_queue.c
index 5b3b5f74cf005528e11d90df42715fd71da55267..d364c910a5c0ae8e0c91f8ff707e1414361e305d 100644 (file)
--- a/src/screen_queue.c
+++ b/src/screen_queue.c
}
static void
-screen_queue_init(WINDOW *w, int cols, int rows)
+screen_queue_init(WINDOW *w, unsigned cols, unsigned rows)
{
lw = list_window_init(w, cols, rows);
lw->hide_cursor = true;
screen_queue_repaint();
} else
- timer_hide_cursor_id = g_timeout_add(options.hide_cursor * 1000,
- timer_hide_cursor, c);
+ timer_hide_cursor_id = g_timeout_add_seconds(options.hide_cursor,
+ timer_hide_cursor, c);
return FALSE;
}
assert(timer_hide_cursor_id == 0);
if (options.hide_cursor > 0) {
lw->hide_cursor = false;
- timer_hide_cursor_id = g_timeout_add(options.hide_cursor * 1000,
- timer_hide_cursor, c);
+ timer_hide_cursor_id = g_timeout_add_seconds(options.hide_cursor,
+ timer_hide_cursor, c);
}
screen_queue_restore_selection();
}
static void
-screen_queue_resize(int cols, int rows)
+screen_queue_resize(unsigned cols, unsigned rows)
{
list_window_resize(lw, cols, rows);
}
if (options.hide_cursor > 0) {
if (timer_hide_cursor_id != 0)
g_source_remove(timer_hide_cursor_id);
- timer_hide_cursor_id = g_timeout_add(options.hide_cursor * 1000,
- timer_hide_cursor, c);
+ timer_hide_cursor_id = g_timeout_add_seconds(options.hide_cursor,
+ timer_hide_cursor, c);
}
if (list_window_cmd(lw, cmd)) {