diff --git a/src/screen_queue.c b/src/screen_queue.c
index de6b2a09627f19d7781b5cece0cc225283f396b3..d364c910a5c0ae8e0c91f8ff707e1414361e305d 100644 (file)
--- a/src/screen_queue.c
+++ b/src/screen_queue.c
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();
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)) {